pub struct SectionBody { /* private fields */ }
Implementations§
Source§impl SectionBody
impl SectionBody
pub fn with_mode(self, test_attribute: CatchrMode) -> Self
pub fn empty() -> Self
pub fn new(items: Vec<SectionItem>) -> Self
pub fn is_top_level(&self) -> bool
pub fn get_stmts_before(&self, idx: usize) -> Vec<Stmt>
pub fn get_stmts_after(&self, idx: usize) -> Vec<Stmt>
pub fn items(&self) -> &[SectionItem]
pub fn to_tokens_inner(&self, scope: Scope, tokens: &mut TokenStream)
Trait Implementations§
Source§impl Clone for SectionBody
impl Clone for SectionBody
Source§fn clone(&self) -> SectionBody
fn clone(&self) -> SectionBody
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 SectionBody
impl Debug for SectionBody
Source§impl Parse for SectionBody
impl Parse for SectionBody
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl PartialEq for SectionBody
impl PartialEq for SectionBody
impl Eq for SectionBody
impl StructuralPartialEq for SectionBody
Auto Trait Implementations§
impl Freeze for SectionBody
impl RefUnwindSafe for SectionBody
impl !Send for SectionBody
impl !Sync for SectionBody
impl Unpin for SectionBody
impl UnwindSafe for SectionBody
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