pub struct SymbolInfo {
pub id: String,
pub kind: String,
pub doc: Option<DocBlock>,
pub signatures: Vec<SignatureInfo>,
pub src_ref: SrcRef,
}Expand description
Symbol information in human readable form.
Fields§
§id: StringID of the symbol.
kind: StringHuman readable symbol kind.
doc: Option<DocBlock>Optional documentation block.
signatures: Vec<SignatureInfo>Parameters and alternative parameters if any.
src_ref: SrcRefSource code reference.
Trait Implementations§
Source§impl Default for SymbolInfo
impl Default for SymbolInfo
Source§fn default() -> SymbolInfo
fn default() -> SymbolInfo
Returns the “default value” for a type. Read more
Source§impl From<&Rc<Assignment>> for SymbolInfo
impl From<&Rc<Assignment>> for SymbolInfo
Source§fn from(def: &Rc<Assignment>) -> Self
fn from(def: &Rc<Assignment>) -> Self
Converts to this type from the input type.
Source§impl From<&Rc<FunctionDefinition>> for SymbolInfo
impl From<&Rc<FunctionDefinition>> for SymbolInfo
Source§fn from(def: &Rc<FunctionDefinition>) -> Self
fn from(def: &Rc<FunctionDefinition>) -> Self
Converts to this type from the input type.
Source§impl From<&Rc<ModuleDefinition>> for SymbolInfo
impl From<&Rc<ModuleDefinition>> for SymbolInfo
Source§fn from(def: &Rc<ModuleDefinition>) -> Self
fn from(def: &Rc<ModuleDefinition>) -> Self
Converts to this type from the input type.
Source§impl From<&Rc<SourceFile>> for SymbolInfo
impl From<&Rc<SourceFile>> for SymbolInfo
Source§fn from(def: &Rc<SourceFile>) -> Self
fn from(def: &Rc<SourceFile>) -> Self
Converts to this type from the input type.
Source§impl From<&Rc<WorkbenchDefinition>> for SymbolInfo
impl From<&Rc<WorkbenchDefinition>> for SymbolInfo
Source§fn from(def: &Rc<WorkbenchDefinition>) -> Self
fn from(def: &Rc<WorkbenchDefinition>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SymbolInfo
impl RefUnwindSafe for SymbolInfo
impl Send for SymbolInfo
impl Sync for SymbolInfo
impl Unpin for SymbolInfo
impl UnwindSafe for SymbolInfo
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> 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