pub struct VariantPath(/* private fields */);Expand description
A message variant’s path, such as Save or, for a nested enum, Editor::Bold.
Implementations§
Source§impl VariantPath
impl VariantPath
Sourcepub const fn new(path: &'static str) -> VariantPath
pub const fn new(path: &'static str) -> VariantPath
A path from a static name, usable in a static table.
Sourcepub fn nested(outer: &str, inner: &VariantPath) -> VariantPath
pub fn nested(outer: &str, inner: &VariantPath) -> VariantPath
outer::inner, for a variant of a nested message enum.
Trait Implementations§
Source§impl AsRef<str> for VariantPath
impl AsRef<str> for VariantPath
Source§impl Clone for VariantPath
impl Clone for VariantPath
Source§fn clone(&self) -> VariantPath
fn clone(&self) -> VariantPath
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 VariantPath
impl Debug for VariantPath
Source§impl Display for VariantPath
impl Display for VariantPath
impl Eq for VariantPath
Source§impl Hash for VariantPath
impl Hash for VariantPath
Source§impl Ord for VariantPath
impl Ord for VariantPath
Source§fn cmp(&self, other: &VariantPath) -> Ordering
fn cmp(&self, other: &VariantPath) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for VariantPath
impl PartialEq for VariantPath
Source§impl PartialOrd for VariantPath
impl PartialOrd for VariantPath
impl StructuralPartialEq for VariantPath
Auto Trait Implementations§
impl Forget for VariantPath
impl Freeze for VariantPath
impl Move for VariantPath
impl RefUnwindSafe for VariantPathwhere
String: RefUnwindSafe,
impl Send for VariantPath
impl Sync for VariantPath
impl Unpin for VariantPath
impl UnsafeUnpin for VariantPath
impl UnwindSafe for VariantPath
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