[−][src]Struct syn_str::custom_types::StructInterface
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]
fn generics(&self) -> &Vec<Generic>[src]
fn format_generics(&self) -> String[src]
fn format_generics_traitless(&self) -> String[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,