Struct catchr_core::SectionBody
source · [−]pub struct SectionBody { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for SectionBody
impl Clone for SectionBody
sourcefn clone(&self) -> SectionBody
fn clone(&self) -> SectionBody
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SectionBody
impl Debug for SectionBody
sourceimpl Parse for SectionBody
impl Parse for SectionBody
fn parse(input: ParseStream<'_>) -> Result<Self>
sourceimpl PartialEq<SectionBody> for SectionBody
impl PartialEq<SectionBody> for SectionBody
sourcefn eq(&self, other: &SectionBody) -> bool
fn eq(&self, other: &SectionBody) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SectionBody) -> bool
fn ne(&self, other: &SectionBody) -> bool
This method tests for !=
.
impl Eq for SectionBody
impl StructuralEq for SectionBody
impl StructuralPartialEq for SectionBody
Auto Trait Implementations
impl RefUnwindSafe for SectionBody
impl !Send for SectionBody
impl !Sync for SectionBody
impl Unpin for SectionBody
impl UnwindSafe for SectionBody
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more