pub struct ComponentSuffix(/* private fields */);Expand description
Preferred generated component helper suffix.
Implementations§
Source§impl ComponentSuffix
impl ComponentSuffix
Sourcepub const fn new(value: &'static str) -> Self
pub const fn new(value: &'static str) -> Self
Creates a component suffix from static metadata.
§Panics
Panics when value is not a valid component suffix. Use
validate_component_suffix when the value comes from a recoverable
runtime input boundary.
Trait Implementations§
Source§impl Clone for ComponentSuffix
impl Clone for ComponentSuffix
Source§fn clone(&self) -> ComponentSuffix
fn clone(&self) -> ComponentSuffix
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 moreimpl Copy for ComponentSuffix
Source§impl Debug for ComponentSuffix
impl Debug for ComponentSuffix
impl Eq for ComponentSuffix
Source§impl PartialEq for ComponentSuffix
impl PartialEq for ComponentSuffix
impl StructuralPartialEq for ComponentSuffix
Auto Trait Implementations§
impl Freeze for ComponentSuffix
impl RefUnwindSafe for ComponentSuffix
impl Send for ComponentSuffix
impl Sync for ComponentSuffix
impl Unpin for ComponentSuffix
impl UnsafeUnpin for ComponentSuffix
impl UnwindSafe for ComponentSuffix
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