[−][src]Struct aligned::Aligned
A newtype with alignment of at least A
bytes
Trait Implementations
impl<A, T> Deref for Aligned<A, T> where
A: Alignment,
T: ?Sized,
[src]
A: Alignment,
T: ?Sized,
impl<A, T> DerefMut for Aligned<A, T> where
A: Alignment,
T: ?Sized,
[src]
A: Alignment,
T: ?Sized,
impl<A, T> AsSlice for Aligned<A, T> where
A: Alignment,
T: AsSlice,
[src]
A: Alignment,
T: AsSlice,
type Element = T::Element
The element type of the slice view
fn as_slice(&self) -> &[T::Element]
[src]
impl<A, T> AsMutSlice for Aligned<A, T> where
A: Alignment,
T: AsMutSlice,
[src]
A: Alignment,
T: AsMutSlice,
fn as_mut_slice(&mut self) -> &mut [T::Element]
[src]
Auto Trait Implementations
impl<A, T: ?Sized> Send for Aligned<A, T> where
A: Send,
T: Send,
A: Send,
T: Send,
impl<A, T: ?Sized> Sync for Aligned<A, T> where
A: Sync,
T: Sync,
A: Sync,
T: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self