pub struct SymbolFact {
pub name: String,
pub kind: NodeKind,
pub span: SourceSpan,
pub test_only: bool,
pub owner: Option<String>,
}Fields§
§name: String§kind: NodeKind§span: SourceSpan§test_only: boolThis declaration is compiled only for tests, either because it carries
a test attribute itself or because it is nested below #[cfg(test)].
owner: Option<String>The type this symbol was declared inside, when it was.
A class and its methods are joined by their own edge rather than by containment alone, because “what does this type do” is a different question from “what is in this file”.
Trait Implementations§
Source§impl Clone for SymbolFact
impl Clone for SymbolFact
Source§fn clone(&self) -> SymbolFact
fn clone(&self) -> SymbolFact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SymbolFact
impl Debug for SymbolFact
impl Eq for SymbolFact
Source§impl PartialEq for SymbolFact
impl PartialEq for SymbolFact
impl StructuralPartialEq for SymbolFact
Auto Trait Implementations§
impl Freeze for SymbolFact
impl RefUnwindSafe for SymbolFact
impl Send for SymbolFact
impl Sync for SymbolFact
impl Unpin for SymbolFact
impl UnsafeUnpin for SymbolFact
impl UnwindSafe for SymbolFact
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