pub struct Range<F, N> {
pub first: F,
pub n_left: N,
}
Expand description
A Range from first
to first + n_left
Fields
first: F
n_left: N
Implementations
Trait Implementations
sourceimpl<'a> WriteBinary<Range<u16, u16>> for Range<u16, u16>
impl<'a> WriteBinary<Range<u16, u16>> for Range<u16, u16>
sourcefn write<C: WriteContext>(ctxt: &mut C, range: Self) -> Result<(), WriteError>
fn write<C: WriteContext>(ctxt: &mut C, range: Self) -> Result<(), WriteError>
Write the binary representation of Self to ctxt
.
sourceimpl<'a> WriteBinary<Range<u16, u8>> for Range<u16, u8>
impl<'a> WriteBinary<Range<u16, u8>> for Range<u16, u8>
sourcefn write<C: WriteContext>(ctxt: &mut C, range: Self) -> Result<(), WriteError>
fn write<C: WriteContext>(ctxt: &mut C, range: Self) -> Result<(), WriteError>
Write the binary representation of Self to ctxt
.
sourceimpl<'a> WriteBinary<Range<u8, u8>> for Range<u8, u8>
impl<'a> WriteBinary<Range<u8, u8>> for Range<u8, u8>
sourcefn write<C: WriteContext>(ctxt: &mut C, range: Self) -> Result<(), WriteError>
fn write<C: WriteContext>(ctxt: &mut C, range: Self) -> Result<(), WriteError>
Write the binary representation of Self to ctxt
.
impl<F: Copy, N: Copy> Copy for Range<F, N>
impl<F, N> StructuralPartialEq for Range<F, N>
Auto Trait Implementations
impl<F, N> RefUnwindSafe for Range<F, N> where
F: RefUnwindSafe,
N: RefUnwindSafe,
impl<F, N> Send for Range<F, N> where
F: Send,
N: Send,
impl<F, N> Sync for Range<F, N> where
F: Sync,
N: Sync,
impl<F, N> Unpin for Range<F, N> where
F: Unpin,
N: Unpin,
impl<F, N> UnwindSafe for Range<F, N> where
F: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> ReadBinary<'a> for T where
T: ReadUnchecked<'a>,
impl<'a, T> ReadBinary<'a> for T where
T: ReadUnchecked<'a>,
type HostType = <T as ReadUnchecked<'a>>::HostType
fn read(
ctxt: &mut ReadCtxt<'a>
) -> Result<<T as ReadBinary<'a>>::HostType, ParseError>
sourceimpl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
impl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
sourceimpl<'a, T> ReadFixedSizeDep<'a> for T where
T: ReadUnchecked<'a>,
impl<'a, T> ReadFixedSizeDep<'a> for T where
T: ReadUnchecked<'a>,
sourceimpl<'a, T> ReadUnchecked<'a> for T where
T: ReadFrom<'a>,
impl<'a, T> ReadUnchecked<'a> for T where
T: ReadFrom<'a>,
type HostType = T
sourceunsafe fn read_unchecked(
ctxt: &mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
unsafe fn read_unchecked(
ctxt: &mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
Must read exactly SIZE
bytes.
Unsafe as it avoids prohibitively expensive per-byte bounds checking. Read more
sourceimpl<T, HostType> WriteBinaryDep<HostType> for T where
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for T where
T: WriteBinary<HostType>,
type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by write_dep
.
sourcefn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
fn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
Write the binary representation of Self to ctxt
.