[−][src]Struct syn_str::custom_types::Field
A struct field;with an alignment,a visibiliy,an optional name and a type.
In nameless ones,represented as the empty string,this is displayed with only the type as might be in the syntax of tuple structs.
Fields
vis: &'a str
align: usize
name: &'a str
f_type: &'a str
Methods
impl<'a> Field<'a>
[src]
pub fn new(a: &'a str) -> Result<Self, &'static str>
[src]
Construct a new Field struct from stringified rust syntax,giving them an alignment for ordering purporses.
Trait Implementations
impl<'a> Debug for Field<'a>
[src]
impl<'a> Display for Field<'a>
[src]
impl<'a> DisplayField<Field<'a>> for Struct<'a>
[src]
impl<'a> DisplayField<Field<'a>> for AnonymousStruct<'a>
[src]
impl<'a> Eq for Field<'a>
[src]
impl<'a> Ord for Field<'a>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'a> PartialEq<Field<'a>> for Field<'a>
[src]
impl<'a> PartialOrd<Field<'a>> for Field<'a>
[src]
Auto Trait Implementations
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>,