Enum rnix::ast::UnaryOpKind
source · pub enum UnaryOpKind {
Invert,
Negate,
}
Variants§
Implementations§
source§impl 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§
source§impl Clone for UnaryOpKind
impl Clone for UnaryOpKind
source§fn clone(&self) -> UnaryOpKind
fn clone(&self) -> UnaryOpKind
Returns a copy of the value. Read more
1.0.0 · 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 UnaryOpKind
impl Debug for UnaryOpKind
source§impl Hash for UnaryOpKind
impl Hash for UnaryOpKind
source§impl PartialEq for UnaryOpKind
impl PartialEq for UnaryOpKind
source§fn eq(&self, other: &UnaryOpKind) -> bool
fn eq(&self, other: &UnaryOpKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for UnaryOpKind
impl Eq for UnaryOpKind
impl StructuralPartialEq for UnaryOpKind
Auto Trait Implementations§
impl Freeze for UnaryOpKind
impl RefUnwindSafe for UnaryOpKind
impl Send for UnaryOpKind
impl Sync for UnaryOpKind
impl Unpin for UnaryOpKind
impl UnwindSafe for UnaryOpKind
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)