[][src]Struct genco::java::Constructor

pub struct Constructor<'el> {
    pub modifiers: Vec<Modifier>,
    pub arguments: Vec<Argument<'el>>,
    pub body: Tokens<'el, Java<'el>>,
    pub throws: Option<Tokens<'el, Java<'el>>>,
    // some fields omitted
}

Model for Java Constructors.

Fields

modifiers: Vec<Modifier>

Constructor modifiers.

arguments: Vec<Argument<'el>>

Arguments for the constructor.

body: Tokens<'el, Java<'el>>

Body of the constructor.

throws: Option<Tokens<'el, Java<'el>>>

Exception thrown by the constructor.

Implementations

impl<'el> Constructor<'el>[src]

pub fn new() -> Constructor<'el>[src]

Build a new empty constructor.

pub fn annotation<A>(&mut self, annotation: A) where
    A: IntoTokens<'el, Java<'el>>, 
[src]

Push an annotation.

Trait Implementations

impl<'el> Clone for Constructor<'el>[src]

impl<'el> Debug for Constructor<'el>[src]

Auto Trait Implementations

impl<'el> !RefUnwindSafe for Constructor<'el>

impl<'el> !Send for Constructor<'el>

impl<'el> !Sync for Constructor<'el>

impl<'el> Unpin for Constructor<'el>

impl<'el> !UnwindSafe for Constructor<'el>

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.