pub struct StorybookArgName(/* private fields */);Expand description
Validated Storybook arg name metadata.
Implementations§
Source§impl StorybookArgName
impl StorybookArgName
Sourcepub fn new(input: &str) -> Result<Self, StorybookNameError>
pub fn new(input: &str) -> Result<Self, 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 · 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§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 · 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§impl PartialOrd for StorybookArgName
impl PartialOrd for StorybookArgName
Source§impl TryFrom<&str> for StorybookArgName
impl TryFrom<&str> for StorybookArgName
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