Succ

Struct Succ 

Source
pub struct Succ<N>(/* private fields */);

Trait Implementations§

Source§

impl<Req, ReqR, NewReq> Insert<NewReq, Succ<Succ<Zero>>, Left<Right<Here>>, Node<Req, Node<NewReq, (), ()>, Node<ReqR, (), ()>>> for Node<Req, (), Node<ReqR, (), ()>>

Source§

type MinDepth = Succ<Succ<Zero>>

Source§

type Queries = Left<Here>

Source§

fn insert( self, new_req: NewReq, ) -> Node<Req, Node<NewReq, (), ()>, Node<ReqR, (), ()>>

Inserts a new requirement into the tree. If you want to replace an existing requirement, remove it beforehand.
Source§

impl<Req, ReqL, NewReq> Insert<NewReq, Succ<Succ<Zero>>, Right<Left<Here>>, Node<Req, Node<ReqL, (), ()>, Node<NewReq, (), ()>>> for Node<Req, Node<ReqL, (), ()>, ()>

Source§

type MinDepth = Succ<Succ<Zero>>

Source§

type Queries = Right<Here>

Source§

fn insert( self, new_req: NewReq, ) -> Node<Req, Node<ReqL, (), ()>, Node<NewReq, (), ()>>

Inserts a new requirement into the tree. If you want to replace an existing requirement, remove it beforehand.
Source§

impl<Req, NewReq> Insert<NewReq, Succ<Zero>, Left<Here>, Node<Req, Node<NewReq, (), ()>, ()>> for Node<Req, (), ()>

Source§

type MinDepth = Succ<Zero>

Source§

type Queries = Left<Here>

Source§

fn insert(self, new_req: NewReq) -> Node<Req, Node<NewReq, (), ()>, ()>

Inserts a new requirement into the tree. If you want to replace an existing requirement, remove it beforehand.
Source§

impl<N> Max<Succ<N>, Zero> for ()
where N: IsNumber,

Source§

impl<N1, N2> Max<Succ<N1>, Succ<N2>> for ()
where N1: IsNumber, N2: IsNumber, (): Max<N1, N2>,

Source§

type Output = Succ<<() as Max<N1, N2>>::Output>

Source§

impl<N> Max<Zero, Succ<N>> for ()
where N: IsNumber,

Source§

impl<N> Min<Succ<N>, Zero> for ()
where N: IsNumber,

Source§

impl<N1, N2> Min<Succ<N1>, Succ<N2>> for ()
where N1: IsNumber, N2: IsNumber, (): Min<N1, N2>,

Source§

type Output = Succ<<() as Min<N1, N2>>::Output>

Source§

impl<N> Min<Zero, Succ<N>> for ()
where N: IsNumber,

Source§

impl<N1, N2> Equal<Succ<N1>, Succ<N2>> for ()
where (): Equal<N1, N2>,

Source§

impl<N> GreaterThanOrEqual<Succ<N>, Zero> for ()

Source§

impl<N1, N2> GreaterThanOrEqual<Succ<N1>, Succ<N2>> for ()
where (): GreaterThanOrEqual<N1, N2>,

Source§

impl<N> IsNumber for Succ<N>
where N: IsNumber,

Source§

impl<N1, N2> LessThan<Succ<N1>, Succ<N2>> for ()
where (): LessThan<N1, N2>,

Source§

impl<N> LessThan<Zero, Succ<N>> for ()
where N: IsNumber,

Auto Trait Implementations§

§

impl<N> Freeze for Succ<N>

§

impl<N> RefUnwindSafe for Succ<N>
where N: RefUnwindSafe,

§

impl<N> Send for Succ<N>
where N: Send,

§

impl<N> Sync for Succ<N>
where N: Sync,

§

impl<N> Unpin for Succ<N>
where N: Unpin,

§

impl<N> UnwindSafe for Succ<N>
where N: 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> 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, 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.