pub struct ClassSymbol {
pub name: String,
pub parent_name: Option<String>,
pub is_interface: bool,
pub is_exported: bool,
pub method_count: usize,
pub has_behavior: bool,
pub field_names: Vec<String>,
pub field_types: Vec<String>,
pub start_line: usize,
pub end_line: usize,
pub name_col: usize,
pub name_end_col: usize,
}Expand description
Symbol-level view of a class — everything deps/LSP/hotspot need to
reason about a class without parsing method bodies. Fields intentionally
track the subset of ClassInfo that survives cross-file consumption.
Fields§
§name: String§parent_name: Option<String>§is_interface: bool§is_exported: bool§method_count: usize§has_behavior: bool§field_names: Vec<String>§field_types: Vec<String>§start_line: usize§end_line: usize§name_col: usize§name_end_col: usizeImplementations§
Source§impl ClassSymbol
impl ClassSymbol
pub fn from_class_info(c: &ClassInfo) -> Self
Trait Implementations§
Source§impl Clone for ClassSymbol
impl Clone for ClassSymbol
Source§fn clone(&self) -> ClassSymbol
fn clone(&self) -> ClassSymbol
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 ClassSymbol
impl Debug for ClassSymbol
Source§impl Default for ClassSymbol
impl Default for ClassSymbol
Source§fn default() -> ClassSymbol
fn default() -> ClassSymbol
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClassSymbol
impl<'de> Deserialize<'de> for ClassSymbol
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
Auto Trait Implementations§
impl Freeze for ClassSymbol
impl RefUnwindSafe for ClassSymbol
impl Send for ClassSymbol
impl Sync for ClassSymbol
impl Unpin for ClassSymbol
impl UnsafeUnpin for ClassSymbol
impl UnwindSafe for ClassSymbol
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<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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