pub enum StorybookFileKind {
Story,
MainConfig,
PreviewConfig,
ManagerConfig,
Theme,
Test,
Documentation,
}Expand description
Storybook file-kind labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for StorybookFileKind
impl Clone for StorybookFileKind
Source§fn clone(&self) -> StorybookFileKind
fn clone(&self) -> StorybookFileKind
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 StorybookFileKind
impl Debug for StorybookFileKind
Source§impl Display for StorybookFileKind
impl Display for StorybookFileKind
Source§impl FromStr for StorybookFileKind
impl FromStr for StorybookFileKind
Source§type Err = StorybookNameError
type Err = StorybookNameError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<StorybookFileKind, <StorybookFileKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<StorybookFileKind, <StorybookFileKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for StorybookFileKind
impl Hash for StorybookFileKind
Source§impl Ord for StorybookFileKind
impl Ord for StorybookFileKind
Source§fn cmp(&self, other: &StorybookFileKind) -> Ordering
fn cmp(&self, other: &StorybookFileKind) -> 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 StorybookFileKind
impl PartialEq for StorybookFileKind
Source§fn eq(&self, other: &StorybookFileKind) -> bool
fn eq(&self, other: &StorybookFileKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StorybookFileKind
impl PartialOrd for StorybookFileKind
impl Copy for StorybookFileKind
impl Eq for StorybookFileKind
impl StructuralPartialEq for StorybookFileKind
Auto Trait Implementations§
impl Freeze for StorybookFileKind
impl RefUnwindSafe for StorybookFileKind
impl Send for StorybookFileKind
impl Sync for StorybookFileKind
impl Unpin for StorybookFileKind
impl UnsafeUnpin for StorybookFileKind
impl UnwindSafe for StorybookFileKind
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