#[repr(C)]pub struct Seq0255<'a, T>(pub Vec<T>, _);
Expand description
Seq0255
represents a sequence with a maximum length of 255 elements.
This structure uses a generic type T
and a lifetime parameter 'a
.
Tuple Fields§
§0: Vec<T>
Implementations§
Source§impl<'a, const SIZE: usize, const HEADERSIZE: usize, const MAXSIZE: usize> Seq0255<'a, Inner<'a, false, SIZE, HEADERSIZE, MAXSIZE>>
impl<'a, const SIZE: usize, const HEADERSIZE: usize, const MAXSIZE: usize> Seq0255<'a, Inner<'a, false, SIZE, HEADERSIZE, MAXSIZE>>
Trait Implementations§
Source§impl<'a, T: 'a + Sv2DataType<'a> + GetMarker + GetSize + Decodable<'a>> Decodable<'a> for Seq0255<'a, T>
impl<'a, T: 'a + Sv2DataType<'a> + GetMarker + GetSize + Decodable<'a>> Decodable<'a> for Seq0255<'a, T>
Source§fn get_structure(data: &[u8]) -> Result<Vec<FieldMarker>, Error>
fn get_structure(data: &[u8]) -> Result<Vec<FieldMarker>, Error>
Defines the expected structure of a type based on binary data. Read more
Source§fn from_decoded_fields(data: Vec<DecodableField<'a>>) -> Result<Self, Error>
fn from_decoded_fields(data: Vec<DecodableField<'a>>) -> Result<Self, Error>
Constructs the type from a vector of decoded fields. Read more
Source§impl<'a> From<Seq0255<'a, Inner<'a, false, 1, 1, 255>>> for EncodableField<'a>
impl<'a> From<Seq0255<'a, Inner<'a, false, 1, 1, 255>>> for EncodableField<'a>
Source§impl<'a> From<Seq0255<'a, Inner<'a, false, 1, 2, { u16::MAX as usize }>>> for EncodableField<'a>
impl<'a> From<Seq0255<'a, Inner<'a, false, 1, 2, { u16::MAX as usize }>>> for EncodableField<'a>
Source§impl<'a> From<Seq0255<'a, Inner<'a, false, 1, 3, { 2_usize.pow(24) - 1 }>>> for EncodableField<'a>
impl<'a> From<Seq0255<'a, Inner<'a, false, 1, 3, { 2_usize.pow(24) - 1 }>>> for EncodableField<'a>
Source§impl<'a> From<Seq0255<'a, Inner<'a, true, 32, 0, 0>>> for EncodableField<'a>
impl<'a> From<Seq0255<'a, Inner<'a, true, 32, 0, 0>>> for EncodableField<'a>
Source§impl<'a> From<Seq0255<'a, Inner<'a, true, 64, 0, 0>>> for EncodableField<'a>
impl<'a> From<Seq0255<'a, Inner<'a, true, 64, 0, 0>>> for EncodableField<'a>
impl<'a, T: Eq> Eq for Seq0255<'a, T>
impl<'a, T> StructuralPartialEq for Seq0255<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Seq0255<'a, T>
impl<'a, T> RefUnwindSafe for Seq0255<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Seq0255<'a, T>
impl<'a, T> Sync for Seq0255<'a, T>where
T: Sync,
impl<'a, T> Unpin for Seq0255<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Seq0255<'a, T>where
T: RefUnwindSafe + UnwindSafe,
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