Enum rnix::ast::UnaryOpKind
source · pub enum UnaryOpKind {
Invert,
Negate,
}
Variants
Invert
Negate
Implementations
sourceimpl UnaryOpKind
impl UnaryOpKind
sourcepub fn from_kind(kind: SyntaxKind) -> Option<Self>
pub fn from_kind(kind: SyntaxKind) -> Option<Self>
Get the operation kind from a token in the AST
Trait Implementations
sourceimpl Clone for UnaryOpKind
impl Clone for UnaryOpKind
sourcefn clone(&self) -> UnaryOpKind
fn clone(&self) -> UnaryOpKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UnaryOpKind
impl Debug for UnaryOpKind
sourceimpl Hash for UnaryOpKind
impl Hash for UnaryOpKind
sourceimpl PartialEq<UnaryOpKind> for UnaryOpKind
impl PartialEq<UnaryOpKind> for UnaryOpKind
sourcefn eq(&self, other: &UnaryOpKind) -> bool
fn eq(&self, other: &UnaryOpKind) -> bool
impl Copy for UnaryOpKind
impl Eq for UnaryOpKind
impl StructuralEq for UnaryOpKind
impl StructuralPartialEq for UnaryOpKind
Auto Trait Implementations
impl RefUnwindSafe for UnaryOpKind
impl Send for UnaryOpKind
impl Sync for UnaryOpKind
impl Unpin for UnaryOpKind
impl UnwindSafe for UnaryOpKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more