pub struct Descriptor { /* private fields */ }Expand description
One step of a global id: a name plus the kind-explicit suffix.
use sealmap_model::{Descriptor, Suffix};
let d = Descriptor::method("run");
assert_eq!(d.name(), "run");
assert_eq!(d.suffix(), &Suffix::Method { disambiguator: None });
assert!(Descriptor::new("f", Suffix::Method { disambiguator: Some("a b".into()) }).is_err());Implementations§
Trait Implementations§
Source§impl Clone for Descriptor
impl Clone for Descriptor
Source§impl Debug for Descriptor
impl Debug for Descriptor
impl Eq for Descriptor
Source§impl Hash for Descriptor
impl Hash for Descriptor
Source§impl Ord for Descriptor
impl Ord for Descriptor
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 Descriptor
impl PartialEq for Descriptor
Source§impl PartialOrd for Descriptor
impl PartialOrd for Descriptor
impl StructuralPartialEq for Descriptor
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnsafeUnpin for Descriptor
impl UnwindSafe for Descriptor
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