[−][src]Struct catchr_core::SectionBody
Methods
impl SectionBody[src]
pub fn empty() -> Self[src]
pub fn new(items: Vec<SectionItem>) -> Self[src]
pub fn is_top_level(&self) -> bool[src]
pub fn get_stmts_before(&self, idx: usize) -> Vec<Stmt>[src]
pub fn get_stmts_after(&self, idx: usize) -> Vec<Stmt>[src]
pub fn items(&self) -> &[SectionItem][src]
pub fn to_tokens_inner(&self, scope: Scope, tokens: &mut TokenStream)[src]
Trait Implementations
impl Clone for SectionBody[src]
fn clone(&self) -> SectionBody[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SectionBody[src]
impl Eq for SectionBody[src]
impl Parse for SectionBody[src]
fn parse(input: ParseStream) -> Result<Self>[src]
impl PartialEq<SectionBody> for SectionBody[src]
fn eq(&self, other: &SectionBody) -> bool[src]
fn ne(&self, other: &SectionBody) -> bool[src]
impl StructuralEq for SectionBody[src]
impl StructuralPartialEq for SectionBody[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,