pub struct OfType<Obj> {
pub constraint_obj: Obj,
pub of_type: String,
}Fields§
§constraint_obj: Obj§of_type: StringTrait Implementations§
Source§impl<Obj> CollectObjs<Obj> for OfType<Obj>
impl<Obj> CollectObjs<Obj> for OfType<Obj>
fn collect_objs(&self, collect: impl FnMut(&Obj))
Source§impl<'de, Obj> Deserialize<'de> for OfType<Obj>where
Obj: Deserialize<'de>,
impl<'de, Obj> Deserialize<'de> for OfType<Obj>where
Obj: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<Obj: Eq> Eq for OfType<Obj>
impl<Obj> StructuralPartialEq for OfType<Obj>
Auto Trait Implementations§
impl<Obj> Freeze for OfType<Obj>where
Obj: Freeze,
impl<Obj> RefUnwindSafe for OfType<Obj>where
Obj: RefUnwindSafe,
impl<Obj> Send for OfType<Obj>where
Obj: Send,
impl<Obj> Sync for OfType<Obj>where
Obj: Sync,
impl<Obj> Unpin for OfType<Obj>where
Obj: Unpin,
impl<Obj> UnwindSafe for OfType<Obj>where
Obj: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more