RefValues

Enum RefValues 

Source
pub enum RefValues<'a> {
    I16(&'a [i16]),
    U16(&'a [u16]),
    I32(&'a [i32]),
    U32(&'a [u32]),
    I64(&'a [i64]),
    U64(&'a [u64]),
    F32(&'a [f32]),
    F64(&'a [f64]),
}
Expand description

A ref to a slice of numerics wrapped with type information.

Variants§

§

I16(&'a [i16])

§

U16(&'a [u16])

§

I32(&'a [i32])

§

U32(&'a [u32])

§

I64(&'a [i64])

§

U64(&'a [u64])

§

F32(&'a [f32])

§

F64(&'a [f64])

Implementations§

Source§

impl RefValues<'_>

Source

pub fn len(&self) -> usize

Source§

impl RefValues<'_>

Source

pub fn value_type(&self) -> ValueType

Trait Implementations§

Source§

impl<'a> Debug for RefValues<'a>

Source§

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

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

impl<'a> From<&'a [f32]> for RefValues<'a>

Source§

fn from(v: &'a [f32]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a [f64]> for RefValues<'a>

Source§

fn from(v: &'a [f64]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a [i16]> for RefValues<'a>

Source§

fn from(v: &'a [i16]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a [i32]> for RefValues<'a>

Source§

fn from(v: &'a [i32]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a [i64]> for RefValues<'a>

Source§

fn from(v: &'a [i64]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a [u16]> for RefValues<'a>

Source§

fn from(v: &'a [u16]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a [u32]> for RefValues<'a>

Source§

fn from(v: &'a [u32]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a [u64]> for RefValues<'a>

Source§

fn from(v: &'a [u64]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Values> for RefValues<'a>

Source§

fn from(value: &'a Values) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Vec<f32>> for RefValues<'a>

Source§

fn from(v: &'a Vec<f32>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Vec<f64>> for RefValues<'a>

Source§

fn from(v: &'a Vec<f64>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Vec<i16>> for RefValues<'a>

Source§

fn from(v: &'a Vec<i16>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Vec<i32>> for RefValues<'a>

Source§

fn from(v: &'a Vec<i32>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Vec<i64>> for RefValues<'a>

Source§

fn from(v: &'a Vec<i64>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Vec<u16>> for RefValues<'a>

Source§

fn from(v: &'a Vec<u16>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Vec<u32>> for RefValues<'a>

Source§

fn from(v: &'a Vec<u32>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Vec<u64>> for RefValues<'a>

Source§

fn from(v: &'a Vec<u64>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a> Freeze for RefValues<'a>

§

impl<'a> RefUnwindSafe for RefValues<'a>

§

impl<'a> Send for RefValues<'a>

§

impl<'a> Sync for RefValues<'a>

§

impl<'a> Unpin for RefValues<'a>

§

impl<'a> UnwindSafe for RefValues<'a>

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.