Struct StorybookArgName
pub struct StorybookArgName(/* private fields */);Expand description
Validated Storybook arg name metadata.
Implementations§
§impl StorybookArgName
impl StorybookArgName
pub fn new(input: &str) -> Result<StorybookArgName, StorybookNameError>
pub fn new(input: &str) -> Result<StorybookArgName, StorybookNameError>
Creates Storybook arg name metadata.
§Errors
Returns StorybookNameError when input is not an ASCII identifier or dotted identifier path.
Trait Implementations§
§impl Clone for StorybookArgName
impl Clone for StorybookArgName
§fn clone(&self) -> StorybookArgName
fn clone(&self) -> StorybookArgName
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for StorybookArgName
impl Debug for StorybookArgName
§impl Display for StorybookArgName
impl Display for StorybookArgName
§impl FromStr for StorybookArgName
impl FromStr for StorybookArgName
§type Err = StorybookNameError
type Err = StorybookNameError
The associated error which can be returned from parsing.
§fn from_str(
input: &str,
) -> Result<StorybookArgName, <StorybookArgName as FromStr>::Err>
fn from_str( input: &str, ) -> Result<StorybookArgName, <StorybookArgName as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for StorybookArgName
impl Hash for StorybookArgName
§impl Ord for StorybookArgName
impl Ord for StorybookArgName
§fn cmp(&self, other: &StorybookArgName) -> Ordering
fn cmp(&self, other: &StorybookArgName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for StorybookArgName
impl PartialEq for StorybookArgName
§impl PartialOrd for StorybookArgName
impl PartialOrd for StorybookArgName
§impl TryFrom<&str> for StorybookArgName
impl TryFrom<&str> for StorybookArgName
§type Error = StorybookNameError
type Error = StorybookNameError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<StorybookArgName, <StorybookArgName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<StorybookArgName, <StorybookArgName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for StorybookArgName
impl StructuralPartialEq for StorybookArgName
Auto Trait Implementations§
impl Freeze for StorybookArgName
impl RefUnwindSafe for StorybookArgName
impl Send for StorybookArgName
impl Sync for StorybookArgName
impl Unpin for StorybookArgName
impl UnsafeUnpin for StorybookArgName
impl UnwindSafe for StorybookArgName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more