[−][src]Struct len_constraints::slice_mut::FixedMut
An immutable slice with a fixed length as length constraint
Methods
impl<'a, T, Val: TypeNum> FixedMut<'a, T, Val>
[src]
pub fn len(&self) -> usize
[src]
The length of the constrained slice
pub fn slice(&self) -> &[T]
[src]
The constrained slice
pub fn slice_mut(&mut self) -> &mut [T]
[src]
The mutable constrained slice
Trait Implementations
impl<'a, T, Val: TypeNum> AsMut<[T]> for FixedMut<'a, T, Val>
[src]
impl<'a, T, Val: TypeNum> AsRef<[T]> for FixedMut<'a, T, Val>
[src]
impl<'a, T, Val: TypeNum> Into<&'a [T]> for FixedMut<'a, T, Val>
[src]
impl<'a, T, Val: TypeNum> Into<&'a mut [T]> for FixedMut<'a, T, Val>
[src]
fn into(self) -> &'a mut [T]
[src]
impl<'a, T: Debug, Val: Debug + TypeNum> Debug for FixedMut<'a, T, Val>
[src]
impl<'a, T, Val: TypeNum> TryFrom<&'a mut [T]> for FixedMut<'a, T, Val>
[src]
type Error = Box<dyn Error + 'static>
The type returned in the event of a conversion error.
fn try_from(slice: &'a mut [T]) -> Result<Self, Self::Error>
[src]
Validates slice
against the length constraint and creates the constrained slice with it
impl<'a, T, Val: TypeNum> Deref for FixedMut<'a, T, Val>
[src]
impl<'a, T, Val: TypeNum> DerefMut for FixedMut<'a, T, Val>
[src]
impl<'a, T, Val: TypeNum, I: SliceIndex<[T]>> Index<I> for FixedMut<'a, T, Val>
[src]
type Output = I::Output
The returned type after indexing.
fn index(&self, index: I) -> &Self::Output
[src]
impl<'a, T, Val: TypeNum, I: SliceIndex<[T]>> IndexMut<I> for FixedMut<'a, T, Val>
[src]
Auto Trait Implementations
impl<'a, T, Val> Send for FixedMut<'a, T, Val> where
T: Send,
Val: Send,
T: Send,
Val: Send,
impl<'a, T, Val> Sync for FixedMut<'a, T, Val> where
T: Sync,
Val: Sync,
T: Sync,
Val: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,