pub struct Symbol {
pub kind: SymbolKind,
pub name: String,
pub signature: Option<String>,
pub line_range: LineRange,
pub visibility: Visibility,
pub doc_comment: Option<String>,
}Fields§
§kind: SymbolKind§name: String§signature: Option<String>§line_range: LineRange§visibility: Visibility§doc_comment: Option<String>Implementations§
Source§impl Symbol
impl Symbol
pub fn new( kind: SymbolKind, name: String, line: usize, visibility: Visibility, ) -> Self
pub fn with_signature(self, signature: String) -> Self
pub fn with_line_range(self, start: usize, end: usize) -> Self
pub fn with_doc_comment(self, doc: String) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
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