pub struct RawUnit {
pub grammar: &'static str,
pub name: String,
pub start: Location,
pub end: Location,
pub text: String,
pub test: bool,
}Expand description
A function ready to embed, positioned in the file it was found in.
Fields§
§grammar: &'static strGrammar of the extractor that found it.
name: String§start: Location§end: Location§text: StringThe function’s code without comments.
test: boolA test that lives among the code: a Rust test or a JavaScript test
case (see crate::test_code). Tests in files of their own are
told by their paths instead.
Trait Implementations§
impl StructuralPartialEq for RawUnit
Auto Trait Implementations§
impl Freeze for RawUnit
impl RefUnwindSafe for RawUnit
impl Send for RawUnit
impl Sync for RawUnit
impl Unpin for RawUnit
impl UnsafeUnpin for RawUnit
impl UnwindSafe for RawUnit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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