Struct 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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

Source§

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

Source§

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.