pub struct LocalCategory(/* private fields */);Expand description
Local category label for external surfaces.
Implementations§
Source§impl LocalCategory
impl LocalCategory
Sourcepub fn new(value: impl AsRef<str>) -> Result<LocalCategory, LocalValueError>
pub fn new(value: impl AsRef<str>) -> Result<LocalCategory, LocalValueError>
Trait Implementations§
Source§impl AsRef<str> for LocalCategory
impl AsRef<str> for LocalCategory
Source§impl Clone for LocalCategory
impl Clone for LocalCategory
Source§fn clone(&self) -> LocalCategory
fn clone(&self) -> LocalCategory
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 LocalCategory
impl Debug for LocalCategory
Source§impl Display for LocalCategory
impl Display for LocalCategory
Source§impl FromStr for LocalCategory
impl FromStr for LocalCategory
Source§type Err = LocalValueError
type Err = LocalValueError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<LocalCategory, <LocalCategory as FromStr>::Err>
fn from_str( value: &str, ) -> Result<LocalCategory, <LocalCategory as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for LocalCategory
impl Hash for LocalCategory
Source§impl Ord for LocalCategory
impl Ord for LocalCategory
Source§fn cmp(&self, other: &LocalCategory) -> Ordering
fn cmp(&self, other: &LocalCategory) -> 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 LocalCategory
impl PartialEq for LocalCategory
Source§impl PartialOrd for LocalCategory
impl PartialOrd for LocalCategory
impl Eq for LocalCategory
impl StructuralPartialEq for LocalCategory
Auto Trait Implementations§
impl Freeze for LocalCategory
impl RefUnwindSafe for LocalCategory
impl Send for LocalCategory
impl Sync for LocalCategory
impl Unpin for LocalCategory
impl UnsafeUnpin for LocalCategory
impl UnwindSafe for LocalCategory
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