Enum invalid_mutations::bounds::PointerKind
source · [−]Expand description
Represents the number of pointers that exist out from a node of a particular kind.
Variants
One(IndexKind)
Exactly one pointer out with this index kind as its destination.
Optional(IndexKind)
Zero or one pointer out with this index kind as its destination. Like the ? operator in
regular expressions.
Star(IndexKind)
Zero or more pointers out with this index kind as its destination. Like the * operator
in regular expressions.
Implementations
sourceimpl PointerKind
impl PointerKind
sourcepub fn pointers_from(src_kind: IndexKind) -> &'static [PointerKind]
pub fn pointers_from(src_kind: IndexKind) -> &'static [PointerKind]
A list of what pointers (indexes) exist out from a particular kind of node within the module.
The only special case is FunctionDefinition, which contains a CodeUnit that can contain
one of several kinds of pointers out. That is not represented in this table.
pub fn to_index_kind(self) -> IndexKind
Trait Implementations
sourceimpl Clone for PointerKind
impl Clone for PointerKind
sourcefn clone(&self) -> PointerKind
fn clone(&self) -> PointerKind
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 more
sourceimpl Debug for PointerKind
impl Debug for PointerKind
sourceimpl Hash for PointerKind
impl Hash for PointerKind
sourceimpl PartialEq<PointerKind> for PointerKind
impl PartialEq<PointerKind> for PointerKind
sourcefn eq(&self, other: &PointerKind) -> bool
fn eq(&self, other: &PointerKind) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Copy for PointerKind
impl Eq for PointerKind
impl StructuralEq for PointerKind
impl StructuralPartialEq for PointerKind
Auto Trait Implementations
impl RefUnwindSafe for PointerKind
impl Send for PointerKind
impl Sync for PointerKind
impl Unpin for PointerKind
impl UnwindSafe for PointerKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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