[][src]Struct syn_str::statics::StaticInterface

pub struct StaticInterface<'a> {
    pub vis: &'a str,
    pub item_type: StaticType,
    pub name: &'a str,
    pub value_type: Type<'a>,
    pub mutability: bool,
}

A global object interface;with their visibility,static type,name,value type and mutability.

Fields

vis: &'a stritem_type: StaticTypename: &'a strvalue_type: Type<'a>mutability: bool

Methods

impl<'a> StaticInterface<'a>[src]

pub fn new(a: &'a str) -> Result<Self, &'static str>[src]

Construct a new StaticInterface from stringified rust syntax.

Trait Implementations

impl<'a> Display for StaticInterface<'a>[src]

Auto Trait Implementations

impl<'a> Send for StaticInterface<'a>

impl<'a> Sync for StaticInterface<'a>

impl<'a> Unpin for StaticInterface<'a>

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> ToString for T where
    T: Display + ?Sized
[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.