Segment

Struct Segment 

Source
pub struct Segment<I: Value, Next: Value<Type = List<<I as Value>::Type>>>(/* private fields */);

Trait Implementations§

Source§

impl<A: Type, B: Type, F: Value<Type = Lambda<A, List<B>>> + App<Current, Result = CurrentResult>, Current: Value<Type = A>, Next: Value<Type = List<A>>, CurrentResult: Value<Type = List<B>>, NextResult: Value<Type = List<B>>, Result: Value<Type = List<B>>> App<Segment<Current, Next>> for BindOn<List<A>, F>
where BindOn<List<A>, F>: Value + App<Next, Result = NextResult>, ConcatWith<NextResult>: Value + App<CurrentResult, Result = Result>,

Source§

type Result = Result

Source§

impl<T: Type, F: Value<Type = Lambda<T, Bool>> + App<Current, Result = CurrentResult>, Current: Value<Type = T>, Next: Value<Type = List<T>>, NextResult: Value<Type = List<T>>, CurrentResult: Value<Type = Bool>, CurrentMaybe: Value<Type = Maybe<T>>, Listed: Value<Type = List<T>>, Result: Value<Type = List<T>>> App<Segment<Current, Next>> for FilterOn<F>
where FilterOn<F>: App<Next, Result = NextResult>, WhenMaybe<Just<Current>>: App<CurrentResult, Result = CurrentMaybe>, ToList<T>: App<CurrentMaybe, Result = Listed>, ConcatWith<Next>: App<Listed, Result = Result>,

Source§

type Result = Result

Source§

impl<T: Type, L: Value<Type = List<T>>, I: Value<Type = T>> App<Segment<I, Empty<T>>> for ConcatWith<L>

Source§

type Result = Segment<I, L>

Source§

impl<T: Type, L: Value<Type = List<T>>, I: Value<Type = T>, NextI: Value<Type = T>, Next: Value<Type = List<T>>, NextResult: Value<Type = List<T>>> App<Segment<I, Segment<NextI, Next>>> for ConcatWith<L>
where ConcatWith<L>: App<Segment<NextI, Next>, Result = NextResult>,

Source§

type Result = Segment<I, NextResult>

Source§

impl<A: Type, B: Type, F: Value<Type = Lambda<A, B>> + App<Ia, Result = Ib>, Ia: Value<Type = A>, Ib: Value<Type = B>, La: Value<Type = List<A>>, Lb: Value<Type = List<B>>> App<Segment<Ia, La>> for MapOn<List<A>, F>
where MapOn<List<A>, F>: Value<Type = Lambda<List<A>, List<B>>> + App<La, Result = Lb>,

Source§

type Result = Segment<Ib, Lb>

Source§

impl<T: Type, I: Value<Type = T>, LI: Value<Type = T>, L: Value<Type = List<T>>, Eq: Value<Type = Bool>, C: Value<Type = Bool>, R: Value<Type = Bool>> App<Segment<LI, L>> for ContainIn<I>
where EqTo<I>: App<LI, Result = Eq>, ContainIn<I>: App<L, Result = C>, OrOn<Eq>: App<C, Result = R>,

Source§

impl<I: Clone + Value, Next: Clone + Value<Type = List<<I as Value>::Type>>> Clone for Segment<I, Next>

Source§

fn clone(&self) -> Segment<I, Next>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<I: Default + Value, Next: Default + Value<Type = List<<I as Value>::Type>>> Default for Segment<I, Next>

Source§

fn default() -> Segment<I, Next>

Returns the “default value” for a type. Read more
Source§

impl<T: Type, I: Value<Type = T>, Next: Value<Type = List<T>>> Value for Segment<I, Next>

Source§

type Type = List<T>

Source§

impl<I: Copy + Value, Next: Copy + Value<Type = List<<I as Value>::Type>>> Copy for Segment<I, Next>

Auto Trait Implementations§

§

impl<I, Next> Freeze for Segment<I, Next>

§

impl<I, Next> RefUnwindSafe for Segment<I, Next>
where I: RefUnwindSafe, Next: RefUnwindSafe,

§

impl<I, Next> Send for Segment<I, Next>
where I: Send, Next: Send,

§

impl<I, Next> Sync for Segment<I, Next>
where I: Sync, Next: Sync,

§

impl<I, Next> Unpin for Segment<I, Next>
where I: Unpin, Next: Unpin,

§

impl<I, Next> UnwindSafe for Segment<I, Next>
where I: UnwindSafe, Next: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.