[][src]Struct catchr_core::SectionBody

pub struct SectionBody { /* fields omitted */ }

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]

impl Debug for SectionBody[src]

impl Eq for SectionBody[src]

impl Parse for SectionBody[src]

impl PartialEq<SectionBody> for SectionBody[src]

impl StructuralEq for SectionBody[src]

impl StructuralPartialEq for SectionBody[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.