pub struct TowerLevel2;
Trait Implementations§
Source§impl TowerLevel for TowerLevel2
impl TowerLevel for TowerLevel2
const WIDTH: usize = 2usize
type Data<T> = [T; 2]
type Base = TowerLevel1
fn split<T>( data: &Self::Data<T>, ) -> (&<Self::Base as TowerLevel>::Data<T>, &<Self::Base as TowerLevel>::Data<T>)
fn split_mut<T>( data: &mut Self::Data<T>, ) -> (&mut <Self::Base as TowerLevel>::Data<T>, &mut <Self::Base as TowerLevel>::Data<T>)
fn join<T: Copy + Default>( left: &<Self::Base as TowerLevel>::Data<T>, right: &<Self::Base as TowerLevel>::Data<T>, ) -> Self::Data<T>
fn from_fn<T>(f: impl FnMut(usize) -> T) -> Self::Data<T>
fn default<T: Copy + Default>() -> Self::Data<T>
Auto Trait Implementations§
impl Freeze for TowerLevel2
impl RefUnwindSafe for TowerLevel2
impl Send for TowerLevel2
impl Sync for TowerLevel2
impl Unpin for TowerLevel2
impl UnwindSafe for TowerLevel2
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more