Skip to main content

LogicalValue

Struct LogicalValue 

Source
pub struct LogicalValue { /* private fields */ }
Expand description

Carries the stream metadata needed to perform the logical decode pass.

Construct with LogicalValue::new after the physical decode pass fills a &[u32] or &[u64] buffer, then call the appropriate decode_* method, passing that slice as data.

Implementations§

Source§

impl LogicalValue

Source

pub fn new(meta: StreamMeta) -> Self

Source

pub fn decode_i32( self, data: &[u32], dec: &mut Decoder, ) -> Result<Vec<i32>, MltError>

Logically decode data (physically decoded u32 words) into Vec<i32>.

Never called for LogicalEncoding::None — that case is handled directly in the bridge (physical buffer decoded into a fresh output Vec).

Source

pub fn decode_u32( self, data: &[u32], dec: &mut Decoder, ) -> Result<Vec<u32>, MltError>

Logically decode data (physically decoded u32 words) into Vec<u32>.

Not called for LogicalEncoding::None — that case is handled entirely in the bridge (physical buffer decoded directly into the output Vec).

Source

pub fn decode_i64( self, data: &[u64], dec: &mut Decoder, ) -> Result<Vec<i64>, MltError>

Logically decode data (physically decoded u64 words) into Vec<i64>.

Never called for LogicalEncoding::None — that case is handled directly in the bridge (physical buffer decoded into a fresh output Vec).

Source

pub fn decode_u64( self, data: &[u64], dec: &mut Decoder, ) -> Result<Vec<u64>, MltError>

Logically decode data (physically decoded u64 words) into Vec<u64>.

Not called for LogicalEncoding::None — that case is handled entirely in the bridge (physical buffer decoded directly into the output Vec).

Trait Implementations§

Source§

impl Debug for LogicalValue

Source§

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

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

impl PartialEq for LogicalValue

Source§

fn eq(&self, other: &LogicalValue) -> 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 StructuralPartialEq for LogicalValue

Auto Trait Implementations§

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> 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, 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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V