[][src]Trait gvariant::aligned_bytes::TryAsAligned

pub trait TryAsAligned<A: Alignment> {
    fn try_as_aligned(&self) -> Result<&AlignedSlice<A>, Misaligned>;
}

Allows widening the alignment by performing fallible runtime checks.

Required methods

Loading content...

Implementations on Foreign Types

impl<A: Alignment> TryAsAligned<A> for [u8][src]

Loading content...

Implementors

impl<A: Alignment, T: AsRef<[u8]>> TryAsAligned<A> for T[src]

impl<FromA: Alignment, ToA: Alignment> TryAsAligned<ToA> for AlignedSlice<FromA>[src]

Loading content...