pub struct RawFunction {
pub grammar: &'static str,
pub name: String,
pub start: Location,
pub end: Location,
pub head: Location,
pub kinds: Vec<u16>,
}Expand description
A function found in a source, before token ranges are attached.
Fields§
§grammar: &'static strGrammar that produced kinds; functions of different grammars are
never compared.
name: String§start: Location§end: Location§head: LocationWhere the code that names the function starts: the key of a method
or property, or the variable a function is assigned to, when that
code precedes start; start otherwise.
kinds: Vec<u16>Pre-order syntax-tree node types of the function, itself included.
Trait Implementations§
Source§impl Clone for RawFunction
impl Clone for RawFunction
Source§impl Debug for RawFunction
impl Debug for RawFunction
Source§impl PartialEq for RawFunction
impl PartialEq for RawFunction
impl StructuralPartialEq for RawFunction
Auto Trait Implementations§
impl Freeze for RawFunction
impl RefUnwindSafe for RawFunction
impl Send for RawFunction
impl Sync for RawFunction
impl Unpin for RawFunction
impl UnsafeUnpin for RawFunction
impl UnwindSafe for RawFunction
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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