[][src]Struct zamm_yang::codegen::template::basic::TraitFragment

pub struct TraitFragment { /* fields omitted */ }

Fragment for a trait.

Implementations

impl TraitFragment[src]

pub fn new(name: String) -> Self[src]

Create a new trait with the given name.

pub fn add_required_trait(&mut self, required_trait: StructConfig)[src]

Add a trait requirement

pub fn append(&mut self, fragment: Rc<RefCell<dyn CodeFragment>>)[src]

Add a fragment to the internals of this trait.

Trait Implementations

impl CodeFragment for TraitFragment[src]

impl Default for TraitFragment[src]

impl ItemDeclarationAPI for TraitFragment[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, 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.

impl<T> Typeable for T where
    T: Any