pub struct Field<T> {
pub name: String,
pub role: T,
}
Fields§
§name: String
§role: T
Implementations§
source§impl Field<Asn<Unresolved>>
impl Field<Asn<Unresolved>>
pub fn try_resolve<R>( &self, resolver: &R ) -> Result<Field<Asn<Resolved>>, Error>where R: Resolver<<Resolved as ResolveState>::SizeType> + Resolver<<Resolved as ResolveState>::RangeType> + Resolver<<Resolved as ResolveState>::ConstType> + Resolver<Type<Unresolved>>,
Trait Implementations§
source§impl<T> PartialEq<Field<T>> for Field<T>where
T: PartialEq<T>,
impl<T> PartialEq<Field<T>> for Field<T>where T: PartialEq<T>,
source§impl<T> PartialOrd<Field<T>> for Field<T>where
T: PartialOrd<T>,
impl<T> PartialOrd<Field<T>> for Field<T>where T: PartialOrd<T>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> TagProperty for Field<T>where
T: TagProperty,
impl<T> TagProperty for Field<T>where T: TagProperty,
impl<T> Eq for Field<T>where T: Eq,
impl<T> StructuralEq for Field<T>
impl<T> StructuralPartialEq for Field<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Field<T>where T: RefUnwindSafe,
impl<T> Send for Field<T>where T: Send,
impl<T> Sync for Field<T>where T: Sync,
impl<T> Unpin for Field<T>where T: Unpin,
impl<T> UnwindSafe for Field<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.