pub enum Applies<'a> {
All,
OnlyType(&'a str),
}
Expand description
Indication whether a field is available in all types of an interface or only in a certain subtype.
Variants§
All
Field is always available, independently from the type.
OnlyType(&'a str)
Field is only available for the type with the specified typename.
Trait Implementations§
impl<'a> Copy for Applies<'a>
impl<'a> Eq for Applies<'a>
impl<'a> StructuralPartialEq for Applies<'a>
Auto Trait Implementations§
impl<'a> Freeze for Applies<'a>
impl<'a> RefUnwindSafe for Applies<'a>
impl<'a> Send for Applies<'a>
impl<'a> Sync for Applies<'a>
impl<'a> Unpin for Applies<'a>
impl<'a> UnwindSafe for Applies<'a>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.