ConstElem

Trait ConstElem 

Source
pub trait ConstElem {
    // Required methods
    fn write_le(&self, out: &mut Vec<u8>);
    fn from_le(bytes: &[u8]) -> Self;
    fn value_kind(&self) -> ValueKind;

    // Provided method
    fn align() -> u8 { ... }
}

Required Methods§

Source

fn write_le(&self, out: &mut Vec<u8>)

Source

fn from_le(bytes: &[u8]) -> Self

Source

fn value_kind(&self) -> ValueKind

Provided Methods§

Source

fn align() -> u8

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ConstElem for bool

Available on crate feature bool only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for i8

Available on crate feature i8 only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for i16

Available on crate feature i16 only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for i32

Available on crate feature i32 only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for i64

Available on crate feature i64 only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for i128

Available on crate feature i128 only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for u8

Available on crate feature u8 only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for u16

Available on crate feature u16 only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for u32

Available on crate feature u32 only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for u64

Available on crate feature u64 only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for u128

Available on crate feature u128 only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for usize

Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl ConstElem for String

Available on crate feature string only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl<T> ConstElem for DMatrix<T>
where T: ConstElem + Debug + Clone + PartialEq + 'static,

Available on crate feature matrixd only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl<T> ConstElem for DVector<T>
where T: ConstElem + Debug + Clone + PartialEq + 'static,

Available on crate feature vectord only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl<T> ConstElem for RowDVector<T>
where T: ConstElem + Debug + Clone + PartialEq + 'static,

Available on crate feature row_vectord only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> Self

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Implementors§

Source§

impl ConstElem for Value

Source§

impl ConstElem for ValueKind

Source§

impl ConstElem for MechEnum

Available on crate feature enum only.
Source§

impl ConstElem for MechSet

Available on crate feature set only.
Source§

impl ConstElem for MechTable

Available on crate feature table only.
Source§

impl ConstElem for C64

Available on crate feature complex only.
Source§

impl ConstElem for F32

Available on crate feature f32 only.
Source§

impl ConstElem for F64

Available on crate feature f64 only.
Source§

impl ConstElem for R64

Available on crate feature rational only.
Source§

impl<T> ConstElem for Matrix<T>
where T: ConstElem + Debug + Clone + PartialEq + 'static,

Available on crate feature matrix only.