pub struct StorybookArgName(/* private fields */);Expand description
Validated Storybook arg name metadata.
Implementations§
Source§impl StorybookArgName
impl StorybookArgName
Sourcepub 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§
Source§impl Clone for StorybookArgName
impl Clone for StorybookArgName
Source§fn clone(&self) -> StorybookArgName
fn clone(&self) -> StorybookArgName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorybookArgName
impl Debug for StorybookArgName
Source§impl Display for StorybookArgName
impl Display for StorybookArgName
Source§impl FromStr for StorybookArgName
impl FromStr for StorybookArgName
Source§type Err = StorybookNameError
type Err = StorybookNameError
The associated error which can be returned from parsing.
Source§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 moreSource§impl Hash for StorybookArgName
impl Hash for StorybookArgName
Source§impl Ord for StorybookArgName
impl Ord for StorybookArgName
Source§fn cmp(&self, other: &StorybookArgName) -> Ordering
fn cmp(&self, other: &StorybookArgName) -> Ordering
1.21.0 (const: unstable) · 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
Source§impl PartialEq for StorybookArgName
impl PartialEq for StorybookArgName
Source§fn eq(&self, other: &StorybookArgName) -> bool
fn eq(&self, other: &StorybookArgName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StorybookArgName
impl PartialOrd for StorybookArgName
Source§impl TryFrom<&str> for StorybookArgName
impl TryFrom<&str> for StorybookArgName
Source§type Error = StorybookNameError
type Error = StorybookNameError
The type returned in the event of a conversion error.
Source§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