[−][src]Trait pets::PredExt
Convenience extension for Pred
.
Required methods
fn pet(t: T) -> Option<Pet<T, Self>> where
T: Sized,
T: Sized,
Attempts to create a Pet
of this predicate with the given value.
unsafe fn pet_unchecked(t: T) -> Pet<T, Self> where
T: Sized,
T: Sized,
Creates a Pet
of this predicate with the given value.
fn petref<'a>(t: &'a T) -> Option<PetRef<'a, T, Self>>
Attempts to create a PetRef
of this predicate with the given reference.
unsafe fn petref_unchecked<'a>(t: &'a T) -> PetRef<'a, T, Self>
Creates a PetRef
of this predicate with the given reference.