Struct anchor_syn::Program

source ·
pub struct Program {
    pub state: Option<State>,
    pub ixs: Vec<Ix>,
    pub name: Ident,
    pub docs: Option<Vec<String>>,
    pub program_mod: ItemMod,
    pub fallback_fn: Option<FallbackFn>,
}

Fields§

§state: Option<State>§ixs: Vec<Ix>§name: Ident§docs: Option<Vec<String>>§program_mod: ItemMod§fallback_fn: Option<FallbackFn>

Trait Implementations§

Formats the value using the given formatter. Read more
Converts to this type from the input type.
Write self to the given TokenStream. Read more
Convert self directly into a TokenStream object. Read more
Convert self directly into a TokenStream object. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
Returns a Span covering the complete contents of this syntax tree node, or Span::call_site() if this node is empty. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.