pub struct SpecDepend<Fst, Snd>where
Fst: SecureSpecCombinator,
Snd: SpecCombinator,{
pub fst: Fst,
pub snd: FnSpec<(Fst::SpecResult,), Snd>,
}
Expand description
Spec version of Depend
.
Fields§
§fst: Fst
combinators that contain dependencies
snd: FnSpec<(Fst::SpecResult,), Snd>
closure that captures dependencies and maps them to the dependent combinators
Trait Implementations§
Source§impl<Fst, Snd> SpecCombinator for SpecDepend<Fst, Snd>where
Fst: SecureSpecCombinator,
Snd: SpecCombinator,
impl<Fst, Snd> SpecCombinator for SpecDepend<Fst, Snd>where
Fst: SecureSpecCombinator,
Snd: SpecCombinator,
Source§type SpecResult = (<Fst as SpecCombinator>::SpecResult, <Snd as SpecCombinator>::SpecResult)
type SpecResult = (<Fst as SpecCombinator>::SpecResult, <Snd as SpecCombinator>::SpecResult)
The view of
Combinator::Result
.impl<U1, U2, V1, V2> DisjointFrom<SpecDepend<U2, V2>> for SpecDepend<U1, V1>where
U1: DisjointFrom<U2> + SecureSpecCombinator,
U2: SecureSpecCombinator,
V1: SpecCombinator,
V2: SpecCombinator,
impl<Fst, Snd> SecureSpecCombinator for SpecDepend<Fst, Snd>where
Fst: SecureSpecCombinator,
Snd: SecureSpecCombinator,
Auto Trait Implementations§
impl<Fst, Snd> Freeze for SpecDepend<Fst, Snd>where
Fst: Freeze,
impl<Fst, Snd> RefUnwindSafe for SpecDepend<Fst, Snd>
impl<Fst, Snd> Send for SpecDepend<Fst, Snd>
impl<Fst, Snd> Sync for SpecDepend<Fst, Snd>
impl<Fst, Snd> Unpin for SpecDepend<Fst, Snd>
impl<Fst, Snd> UnwindSafe for SpecDepend<Fst, Snd>
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, U> SpecTryInto<U> for Twhere
U: SpecTryFrom<T>,
impl<T, U> SpecTryInto<U> for Twhere
U: SpecTryFrom<T>,
Source§type Error = <U as SpecTryFrom<T>>::Error
type Error = <U as SpecTryFrom<T>>::Error
The type returned in the event of a conversion error.