pub struct Unit;Expand description
Trait Implementations§
source§impl AddAssign for Unit
impl AddAssign for Unit
source§fn add_assign(&mut self, _: Unit)
fn add_assign(&mut self, _: Unit)
Performs the
+= operation. Read moresource§impl BitAndAssign for Unit
impl BitAndAssign for Unit
source§fn bitand_assign(&mut self, _: Unit)
fn bitand_assign(&mut self, _: Unit)
Performs the
&= operation. Read moresource§impl BitOrAssign for Unit
impl BitOrAssign for Unit
source§fn bitor_assign(&mut self, _: Unit)
fn bitor_assign(&mut self, _: Unit)
Performs the
|= operation. Read moresource§impl BitXorAssign for Unit
impl BitXorAssign for Unit
source§fn bitxor_assign(&mut self, _: Unit)
fn bitxor_assign(&mut self, _: Unit)
Performs the
^= operation. Read moresource§impl DivAssign for Unit
impl DivAssign for Unit
source§fn div_assign(&mut self, _: Unit)
fn div_assign(&mut self, _: Unit)
Performs the
/= operation. Read moresource§impl MulAssign for Unit
impl MulAssign for Unit
source§fn mul_assign(&mut self, _: Unit)
fn mul_assign(&mut self, _: Unit)
Performs the
*= operation. Read moresource§impl Ord for Unit
impl Ord for Unit
source§impl PartialEq for Unit
impl PartialEq for Unit
source§impl PartialOrd for Unit
impl PartialOrd for Unit
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl RemAssign for Unit
impl RemAssign for Unit
source§fn rem_assign(&mut self, _: Unit)
fn rem_assign(&mut self, _: Unit)
Performs the
%= operation. Read moresource§impl Rotatable for Unit
impl Rotatable for Unit
§type RotLeftOutput = Unit
type RotLeftOutput = Unit
The type of tuple generated by left rorating the elements of the tuple.
§type RotRightOutput = Unit
type RotRightOutput = Unit
The type of tuple generated by right rotating the elements of the tuple.
source§impl ShlAssign for Unit
impl ShlAssign for Unit
source§fn shl_assign(&mut self, _: Unit)
fn shl_assign(&mut self, _: Unit)
Performs the
<<= operation. Read moresource§impl ShrAssign for Unit
impl ShrAssign for Unit
source§fn shr_assign(&mut self, _: Unit)
fn shr_assign(&mut self, _: Unit)
Performs the
>>= operation. Read moresource§impl SubAssign for Unit
impl SubAssign for Unit
source§fn sub_assign(&mut self, _: Unit)
fn sub_assign(&mut self, _: Unit)
Performs the
-= operation. Read moresource§impl ToPrimitive for Unit
impl ToPrimitive for Unit
source§impl TupleLike for Unit
impl TupleLike for Unit
§type AsRefOutput<'a> = Unit
type AsRefOutput<'a> = Unit
The type of tuple containing immutable references to all elements of the tuple.
§type AsMutOutput<'a> = Unit
type AsMutOutput<'a> = Unit
The type of tuple containing mutable references to all elements of the tuple.
§type PushFrontOutput<T> = Tuple<T, Unit>
type PushFrontOutput<T> = Tuple<T, Unit>
The type of tuple generated by pushing an element to the front of the tuple.
§type PushBackOutput<T> = Tuple<T, Unit>
type PushBackOutput<T> = Tuple<T, Unit>
The type of tuple generated by pushing an element to the back of the tuple.
§type JoinOutput<T> = T
where
T: TupleLike
type JoinOutput<T> = T where T: TupleLike
The type of tuple generated by joining two tuples.
§type ToSomeOutput = Unit
type ToSomeOutput = Unit
The type of tuple after wrapping all elements into
Option.§type ToOkOutput<E> = Unit
type ToOkOutput<E> = Unit
The type of tuple after wrapping all elements into
Result.source§fn as_ref(&self) -> Self::AsRefOutput<'_>
fn as_ref(&self) -> Self::AsRefOutput<'_>
Generate a tuple containing immutable references to all elements of the tuple. Read more
source§fn as_mut(&mut self) -> Self::AsMutOutput<'_>
fn as_mut(&mut self) -> Self::AsMutOutput<'_>
Generate a tuple containing mutable reference to all elements of the tuple. Read more
source§fn push<T>(self, value: T) -> Self::PushBackOutput<T>
fn push<T>(self, value: T) -> Self::PushBackOutput<T>
Push an element to the back of the tuple. Read more
source§fn push_front<T>(self, value: T) -> Self::PushFrontOutput<T>
fn push_front<T>(self, value: T) -> Self::PushFrontOutput<T>
Push an element to the front of the tuple. Read more
source§fn push_back<T>(self, value: T) -> Self::PushBackOutput<T>
fn push_back<T>(self, value: T) -> Self::PushBackOutput<T>
Push an element to the back of the tuple. Same as
push().source§fn join<T>(self, value: T) -> Self::JoinOutput<T>where
T: TupleLike,
fn join<T>(self, value: T) -> Self::JoinOutput<T>where
T: TupleLike,
Join two tuples. Read more
source§fn to_some(self) -> Self::ToSomeOutput
fn to_some(self) -> Self::ToSomeOutput
source§fn to_ok<E>(self) -> Self::ToOkOutput<E>
fn to_ok<E>(self) -> Self::ToOkOutput<E>
source§impl UnwrapOrDefault for Unit
impl UnwrapOrDefault for Unit
impl Copy for Unit
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
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