[][src]Struct syn_str::custom_types::StructInterface

pub struct StructInterface<'a> {
    pub item_type: StructType,
    pub vis: &'a str,
    pub name: &'a str,
    pub generics: Vec<Generic<'a>>,
}

A struct-like syntax compound type declaration,with their visibility,type,name and generics.

Fields

item_type: StructTypevis: &'a strname: &'a strgenerics: Vec<Generic<'a>>

Methods

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

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

Construct a new StrictInterface from stringified rust syntax.

pub fn name_boundless(&self) -> String[src]

Returns a String with the name of the structs followed for the trait-boundsless generics.

Trait Implementations

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

impl<'a> DisplayGeneric for StructInterface<'a>[src]

Auto Trait Implementations

impl<'a> Send for StructInterface<'a>

impl<'a> Sync for StructInterface<'a>

impl<'a> Unpin for StructInterface<'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.