Struct graphannis_core::graph::storage::disk_path::node_path::NestedView
source · pub struct NestedView;
Expand description
Use this as a marker type for using this layout as a nested field within another layout.
§Example
use binary_layout::prelude::*;
binary_layout!(icmp_header, BigEndian, {
packet_type: u8,
code: u8,
checksum: u16,
rest_of_header: [u8; 4],
});
binary_layout!(icmp_packet, BigEndian, {
header: icmp_header::NestedView,
data_section: [u8], // open ended byte array, matches until the end of the packet
});
Trait Implementations§
source§impl<S: AsRef<[u8]>> BorrowingNestedView<S> for NestedView
impl<S: AsRef<[u8]>> BorrowingNestedView<S> for NestedView
source§impl NestedViewInfo for NestedView
impl NestedViewInfo for NestedView
source§impl<S> OwningNestedView<Data<S>> for NestedView
impl<S> OwningNestedView<Data<S>> for NestedView
Auto Trait Implementations§
impl Freeze for NestedView
impl RefUnwindSafe for NestedView
impl Send for NestedView
impl Sync for NestedView
impl Unpin for NestedView
impl UnwindSafe for NestedView
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