pub struct Member {
pub name: String,
pub kind: MemberKind,
pub ty: Option<String>,
pub visibility: Visibility,
pub span: Span,
pub refs: Vec<SymbolId>,
}Expand description
Fields§
§name: StringMember name (0, 1, … for positional fields).
kind: MemberKindWhat the member is.
ty: Option<String>Type or signature as written, normalised to single spaces
(e.g. Vec<String>, (u32, u32), fn(&self) -> u8).
visibility: VisibilityMember visibility.
span: SpanWhere it is defined.
refs: Vec<SymbolId>Codebase-relevant types this member’s type mentions, resolved to canonical ids (primitives and std prelude types are omitted).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Member
impl<'de> Deserialize<'de> for Member
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 Member
Source§impl Ord for Member
impl Ord for Member
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Member
impl PartialOrd for Member
impl StructuralPartialEq for Member
Auto Trait Implementations§
impl Freeze for Member
impl RefUnwindSafe for Member
impl Send for Member
impl Sync for Member
impl Unpin for Member
impl UnsafeUnpin for Member
impl UnwindSafe for Member
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