pub enum UnitKind {
Function,
Method,
Impl,
Record,
Closure,
}Expand description
The kind of a coarse code unit used as a clone-report anchor.
Variants§
Function
A free function.
Method
A method (a function inside an impl block or a record body).
Impl
An impl block.
Record
A record body: a class, struct or union definition.
Closure
A closure or lambda with a block body.
Implementations§
Trait Implementations§
impl Copy for UnitKind
impl Eq for UnitKind
impl StructuralPartialEq for UnitKind
Auto Trait Implementations§
impl Freeze for UnitKind
impl RefUnwindSafe for UnitKind
impl Send for UnitKind
impl Sync for UnitKind
impl Unpin for UnitKind
impl UnsafeUnpin for UnitKind
impl UnwindSafe for UnitKind
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.