pub struct NameRecord {
pub name: String,
pub kind: String,
pub line: usize,
pub owner: String,
}Expand description
One declared name and the line its own NAME TOKEN sits on. Deliberately
not the declaration node’s start row: a member’s span begins
at its attribute list, so an attributed member would point a reader at the
[ line instead of the line carrying the name they searched for.
Serialized field order (name, kind, line, owner) is significant;
owner is omitted when empty, which is how a markup or resource
key – built by markup.rs, owned by no C# type – serializes with three
fields.
Fields§
§name: StringThe name value.
kind: StringThe kind value.
line: usizeThe line value.
owner: StringThe owner value.
Trait Implementations§
Source§impl Clone for NameRecord
impl Clone for NameRecord
Source§impl Debug for NameRecord
impl Debug for NameRecord
Source§impl PartialEq for NameRecord
impl PartialEq for NameRecord
impl StructuralPartialEq for NameRecord
Auto Trait Implementations§
impl Freeze for NameRecord
impl RefUnwindSafe for NameRecord
impl Send for NameRecord
impl Sync for NameRecord
impl Unpin for NameRecord
impl UnsafeUnpin for NameRecord
impl UnwindSafe for NameRecord
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> 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