pub struct StorybookComponentTitle(/* private fields */);Expand description
Validated Storybook component title metadata.
Implementations§
Source§impl StorybookComponentTitle
impl StorybookComponentTitle
Sourcepub fn new(input: &str) -> Result<StorybookComponentTitle, StorybookNameError>
pub fn new(input: &str) -> Result<StorybookComponentTitle, StorybookNameError>
Creates Storybook component title metadata.
§Errors
Returns StorybookNameError when input is empty or contains control characters.
Trait Implementations§
Source§impl Clone for StorybookComponentTitle
impl Clone for StorybookComponentTitle
Source§fn clone(&self) -> StorybookComponentTitle
fn clone(&self) -> StorybookComponentTitle
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 StorybookComponentTitle
impl Debug for StorybookComponentTitle
Source§impl Display for StorybookComponentTitle
impl Display for StorybookComponentTitle
Source§impl FromStr for StorybookComponentTitle
impl FromStr for StorybookComponentTitle
Source§type Err = StorybookNameError
type Err = StorybookNameError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<StorybookComponentTitle, <StorybookComponentTitle as FromStr>::Err>
fn from_str( input: &str, ) -> Result<StorybookComponentTitle, <StorybookComponentTitle as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for StorybookComponentTitle
impl Hash for StorybookComponentTitle
Source§impl Ord for StorybookComponentTitle
impl Ord for StorybookComponentTitle
Source§fn cmp(&self, other: &StorybookComponentTitle) -> Ordering
fn cmp(&self, other: &StorybookComponentTitle) -> 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 StorybookComponentTitle
impl PartialEq for StorybookComponentTitle
Source§fn eq(&self, other: &StorybookComponentTitle) -> bool
fn eq(&self, other: &StorybookComponentTitle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StorybookComponentTitle
impl PartialOrd for StorybookComponentTitle
Source§impl TryFrom<&str> for StorybookComponentTitle
impl TryFrom<&str> for StorybookComponentTitle
Source§type Error = StorybookNameError
type Error = StorybookNameError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<StorybookComponentTitle, <StorybookComponentTitle as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<StorybookComponentTitle, <StorybookComponentTitle as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for StorybookComponentTitle
impl StructuralPartialEq for StorybookComponentTitle
Auto Trait Implementations§
impl Freeze for StorybookComponentTitle
impl RefUnwindSafe for StorybookComponentTitle
impl Send for StorybookComponentTitle
impl Sync for StorybookComponentTitle
impl Unpin for StorybookComponentTitle
impl UnsafeUnpin for StorybookComponentTitle
impl UnwindSafe for StorybookComponentTitle
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