pub enum Face {
Predicate,
Unwrap,
UnwrapRef,
UnwrapMut,
TryUnwrap,
TryUnwrapRef,
TryUnwrapMut,
}Expand description
One method the face declares for one member.
The whole vocabulary of derived names, for the reason Member is a
vocabulary rather than five format_ident! calls: a suffix written twice is a suffix that can
come to be written differently, and a front end refusing a collision has to spell exactly the
names the emitter writes.
Variants§
Predicate
is_x — whether this member is the one held.
Unwrap
unwrap_x — the payload, or a panic.
UnwrapRef
unwrap_x_ref — a borrow of it, or a panic.
UnwrapMut
unwrap_x_mut — an exclusive borrow of it, or a panic.
TryUnwrap
try_unwrap_x — the payload, or the refusal.
TryUnwrapRef
try_unwrap_x_ref — a borrow of it, or the refusal.
TryUnwrapMut
try_unwrap_x_mut — an exclusive borrow of it, or the refusal.
Implementations§
Trait Implementations§
impl Copy for Face
impl Eq for Face
Source§impl Ord for Face
impl Ord for Face
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 PartialOrd for Face
impl PartialOrd for Face
impl StructuralPartialEq for Face
Auto Trait Implementations§
impl Freeze for Face
impl RefUnwindSafe for Face
impl Send for Face
impl Sync for Face
impl Unpin for Face
impl UnsafeUnpin for Face
impl UnwindSafe for Face
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