pub enum BlockRelation {
Show 21 variants
Unknown,
Contains,
ContainedBy,
HasParameters,
HasReturn,
Calls,
CalledBy,
HasField,
FieldOf,
TypeOf,
TypeFor,
ImplFor,
HasImpl,
HasMethod,
MethodOf,
Implements,
ImplementedBy,
Uses,
UsedBy,
Extends,
ExtendedBy,
}Variants§
Unknown
Contains
Parent contains child (Root→Func, Class→Method, etc.)
ContainedBy
Child is contained by parent
HasParameters
Func/Method → Parameters block
HasReturn
Func/Method → Return block
Calls
Func/Method → Func/Method it calls
CalledBy
Func/Method is called by another Func/Method
HasField
Class/Enum → Field blocks
FieldOf
Field → Class/Enum that owns it
TypeOf
Field/Parameter/Return → Type definition (the type of this element)
TypeFor
Type definition → Field/Parameter/Return that uses this type
ImplFor
Impl → Type it implements for
HasImpl
Type → Impl blocks for this type
HasMethod
Impl/Trait → Method blocks
MethodOf
Method → Impl/Trait/Class that owns it
Implements
Type → Trait it implements
ImplementedBy
Trait → Types that implement it
Uses
Uses a type/const/function
UsedBy
Is used by
Extends
Trait/Interface extends another (TypeScript extends, Rust supertraits)
ExtendedBy
Trait/Interface is extended by another
Implementations§
Source§impl BlockRelation
impl BlockRelation
Trait Implementations§
Source§impl Clone for BlockRelation
impl Clone for BlockRelation
Source§fn clone(&self) -> BlockRelation
fn clone(&self) -> BlockRelation
Returns a duplicate 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 BlockRelation
impl Debug for BlockRelation
Source§impl Default for BlockRelation
impl Default for BlockRelation
Source§fn default() -> BlockRelation
fn default() -> BlockRelation
Returns the “default value” for a type. Read more
Source§impl Display for BlockRelation
impl Display for BlockRelation
Source§impl FromStr for BlockRelation
impl FromStr for BlockRelation
Source§impl Hash for BlockRelation
impl Hash for BlockRelation
Source§impl IntoEnumIterator for BlockRelation
impl IntoEnumIterator for BlockRelation
type Iterator = BlockRelationIter
fn iter() -> BlockRelationIter ⓘ
Source§impl PartialEq for BlockRelation
impl PartialEq for BlockRelation
Source§impl TryFrom<&str> for BlockRelation
impl TryFrom<&str> for BlockRelation
impl Copy for BlockRelation
impl Eq for BlockRelation
impl StructuralPartialEq for BlockRelation
Auto Trait Implementations§
impl Freeze for BlockRelation
impl RefUnwindSafe for BlockRelation
impl Send for BlockRelation
impl Sync for BlockRelation
impl Unpin for BlockRelation
impl UnwindSafe for BlockRelation
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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