pub enum RelationKind {
Calls,
References,
Inherits,
Implements,
Imports,
DeclaredType,
Accesses,
Throws,
Overrides,
Other(String),
}Expand description
Kind of a relation. Containment is not a relation: it is the entity’s parent.
Variants§
Calls
References
Any other use of a symbol (type in a signature, field access…).
Inherits
Subclassing (extends, superclass).
Implements
Imports
DeclaredType
Typed entity (field, parameter, local, method return) to its declared type.
Accesses
Read or write of a variable (field, parameter, local); the site flags
say which (SiteFlags).
Throws
Method to an exception type it declares in its throws clause.
Overrides
Method to the method it overrides or implements.
Other(String)
Defined by an analysis or a plugin (http, rpc…).
Implementations§
Source§impl RelationKind
impl RelationKind
Sourcepub fn from_name(name: &str) -> RelationKind
pub fn from_name(name: &str) -> RelationKind
Inverse of Self::as_str.
Trait Implementations§
Source§impl Clone for RelationKind
impl Clone for RelationKind
Source§impl Debug for RelationKind
impl Debug for RelationKind
Source§impl<'de> Deserialize<'de> for RelationKind
impl<'de> Deserialize<'de> for RelationKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RelationKind
Source§impl Hash for RelationKind
impl Hash for RelationKind
Source§impl PartialEq for RelationKind
impl PartialEq for RelationKind
Source§impl Serialize for RelationKind
impl Serialize for RelationKind
impl StructuralPartialEq for RelationKind
Auto Trait Implementations§
impl Forget for RelationKind
impl Freeze for RelationKind
impl Move for RelationKind
impl RefUnwindSafe for RelationKind
impl Send for RelationKind
impl Sync for RelationKind
impl Unpin for RelationKind
impl UnsafeUnpin for RelationKind
impl UnwindSafe for RelationKind
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