Struct binary_sv2::Seq0255

source ·
#[repr(C)]
pub struct Seq0255<'a, T>(pub Vec<T>, _);
Expand description

The liftime is here only for type compatibility with serde-sv2

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>>

source

pub fn to_vec(&self) -> Vec<Vec<u8>>

source

pub fn inner_as_ref(&self) -> Vec<&[u8]>

source§

impl<'a, const SIZE: usize> Seq0255<'a, Inner<'a, true, SIZE, 0, 0>>

source

pub fn to_vec(&self) -> Vec<Vec<u8>>

source

pub fn inner_as_ref(&self) -> Vec<&[u8]>

source§

impl<'a, T> Seq0255<'a, T>
where T: 'a,

source

pub fn new(inner: Vec<T>) -> Result<Seq0255<'a, T>, Error>

source

pub fn into_inner(self) -> Vec<T>

source§

impl<'a, T> Seq0255<'a, T>
where T: Fixed,

source

pub fn into_static(self) -> Seq0255<'static, T>

source§

impl<'a, const ISFIXED: bool, const SIZE: usize, const HEADERSIZE: usize, const MAXSIZE: usize> Seq0255<'a, Inner<'a, ISFIXED, SIZE, HEADERSIZE, MAXSIZE>>

source

pub fn into_static( self ) -> Seq0255<'static, Inner<'static, ISFIXED, SIZE, HEADERSIZE, MAXSIZE>>

Trait Implementations§

source§

impl<'a, T> Clone for Seq0255<'a, T>
where T: Clone,

source§

fn clone(&self) -> Seq0255<'a, T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, T> Debug for Seq0255<'a, T>
where T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, T> Decodable<'a> for Seq0255<'a, T>
where T: 'a + Sv2DataType<'a> + GetMarker + GetSize + Decodable<'a>,

source§

impl<'a> From<Seq0255<'a, Inner<'a, false, 1, 1, 255>>> for EncodableField<'a>

source§

fn from(v: Seq0255<'_, Inner<'a, false, 1, 1, 255>>) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a> From<Seq0255<'a, Inner<'a, false, 1, 2, binary_codec_sv2::::datatypes::non_copy_data_types::B064K::{constant#3}>>> for EncodableField<'a>

source§

fn from( v: Seq0255<'_, Inner<'a, false, 1, 2, binary_codec_sv2::::datatypes::non_copy_data_types::B064K::{constant#3}>> ) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a> From<Seq0255<'a, Inner<'a, false, 1, 3, binary_codec_sv2::::datatypes::non_copy_data_types::B016M::{constant#3}>>> for EncodableField<'a>

source§

fn from( v: Seq0255<'_, Inner<'a, false, 1, 3, binary_codec_sv2::::datatypes::non_copy_data_types::B016M::{constant#3}>> ) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a> From<Seq0255<'a, Inner<'a, true, 32, 0, 0>>> for EncodableField<'a>

source§

fn from(v: Seq0255<'_, Inner<'a, true, 32, 0, 0>>) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a> From<Seq0255<'a, Inner<'a, true, 6, 0, 0>>> for EncodableField<'a>

source§

fn from(v: Seq0255<'_, Inner<'a, true, 6, 0, 0>>) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a> From<Seq0255<'a, Inner<'a, true, 64, 0, 0>>> for EncodableField<'a>

source§

fn from(v: Seq0255<'_, Inner<'a, true, 64, 0, 0>>) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a, T> From<Seq0255<'a, T>> for CVec2
where T: Into<CVec>,

source§

fn from(v: Seq0255<'a, T>) -> CVec2

Converts to this type from the input type.
source§

impl<'a> From<Seq0255<'a, U24>> for EncodableField<'a>

source§

fn from(v: Seq0255<'_, U24>) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a> From<Seq0255<'a, bool>> for EncodableField<'a>

source§

fn from(v: Seq0255<'_, bool>) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a> From<Seq0255<'a, u16>> for EncodableField<'a>

source§

fn from(v: Seq0255<'_, u16>) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a> From<Seq0255<'a, u32>> for EncodableField<'a>

source§

fn from(v: Seq0255<'_, u32>) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a> From<Seq0255<'a, u64>> for EncodableField<'a>

source§

fn from(v: Seq0255<'_, u64>) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a> From<Seq0255<'a, u8>> for EncodableField<'a>

source§

fn from(v: Seq0255<'_, u8>) -> EncodableField<'a>

Converts to this type from the input type.
source§

impl<'a, T> From<Vec<T>> for Seq0255<'a, T>

source§

fn from(v: Vec<T>) -> Seq0255<'a, T>

Converts to this type from the input type.
source§

impl<'a, T> GetSize for Seq0255<'a, T>
where T: GetSize,

source§

fn get_size(&self) -> usize

source§

impl<'a, T> PartialEq for Seq0255<'a, T>
where T: PartialEq,

source§

fn eq(&self, other: &Seq0255<'a, T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a, T> Eq for Seq0255<'a, T>
where T: Eq,

source§

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>
where T: Sync + Send,

§

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>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'a, T> Encodable for T
where T: Into<EncodableField<'a>>,

source§

fn to_bytes(self, dst: &mut [u8]) -> Result<usize, Error>

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.