Skip to main content

PackedArray

Type Alias PackedArray 

Source
pub type PackedArray = ArrayBuf<PackedArrayEnum>;
Expand description

Owned PackedArrayWL value.

Aliased Type§

pub struct PackedArray { /* private fields */ }

Trait Implementations§

Source§

impl<T: ArrayElement<PackedArrayEnum>> From<(Vec<usize>, &[T])> for PackedArray

Source§

fn from((dims, slice): (Vec<usize>, &[T])) -> Self

Converts to this type from the input type.
Source§

impl<'de> FromWXF<'de> for PackedArray

Source§

fn from_wxf_with_tag<R: Reader<'de>>( r: &mut WxfReader<R>, tok: ExpressionEnum, ) -> Result<Self, Error>

Read the body given the already-consumed expression token.
Source§

fn from_wxf<R>(r: &mut WxfReader<R>) -> Result<Self, Error>
where R: Reader<'de>,

Read a complete value: its expression token, then its body.
Source§

impl ToWXF for PackedArray

Source§

fn to_wxf<W: Writer>(&self, w: &mut WxfWriter<W>) -> Result<(), Error>

Write self to w as a complete WXF value (tag + payload).