pub enum UnaryOp {
Invert,
Not,
UAdd,
USub,
}
Expand description
See also unaryop
Variants§
Implementations§
Source§impl UnaryOp
impl UnaryOp
pub const fn invert(&self) -> Option<UnaryOpInvert>
pub const fn not(&self) -> Option<UnaryOpNot>
pub const fn u_add(&self) -> Option<UnaryOpUAdd>
pub const fn u_sub(&self) -> Option<UnaryOpUSub>
Trait Implementations§
Source§impl From<UnaryOpInvert> for UnaryOp
impl From<UnaryOpInvert> for UnaryOp
Source§fn from(_: UnaryOpInvert) -> UnaryOp
fn from(_: UnaryOpInvert) -> UnaryOp
Converts to this type from the input type.
Source§impl From<UnaryOpNot> for UnaryOp
impl From<UnaryOpNot> for UnaryOp
Source§fn from(_: UnaryOpNot) -> UnaryOp
fn from(_: UnaryOpNot) -> UnaryOp
Converts to this type from the input type.
Source§impl From<UnaryOpUAdd> for UnaryOp
impl From<UnaryOpUAdd> for UnaryOp
Source§fn from(_: UnaryOpUAdd) -> UnaryOp
fn from(_: UnaryOpUAdd) -> UnaryOp
Converts to this type from the input type.
Source§impl From<UnaryOpUSub> for UnaryOp
impl From<UnaryOpUSub> for UnaryOp
Source§fn from(_: UnaryOpUSub) -> UnaryOp
fn from(_: UnaryOpUSub) -> UnaryOp
Converts to this type from the input type.
Source§impl PartialEq<UnaryOp> for UnaryOpInvert
impl PartialEq<UnaryOp> for UnaryOpInvert
Source§impl PartialEq<UnaryOp> for UnaryOpNot
impl PartialEq<UnaryOp> for UnaryOpNot
Source§impl PartialEq<UnaryOp> for UnaryOpUAdd
impl PartialEq<UnaryOp> for UnaryOpUAdd
Source§impl PartialEq<UnaryOp> for UnaryOpUSub
impl PartialEq<UnaryOp> for UnaryOpUSub
impl Copy for UnaryOp
impl Eq for UnaryOp
impl StructuralPartialEq for UnaryOp
Auto Trait Implementations§
impl Freeze for UnaryOp
impl RefUnwindSafe for UnaryOp
impl Send for UnaryOp
impl Sync for UnaryOp
impl Unpin for UnaryOp
impl UnwindSafe for UnaryOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more