LUT

Struct LUT 

Source
pub struct LUT {
    pub template: CompactString,
    pub indices: [Vec<f32>; 3],
    pub values: Vec<f32>,
    pub values_unit: f32,
}
Expand description

A LUT with associated template.

The indices can come from an ad-hoc definition, or inherited from the template. We handle this for you.

The values are NOT normalized with the values_unit.

Fields§

§template: CompactString

The template name which can be used to look up in parent Lib structs.

§indices: [Vec<f32>; 3]

The indices.

Unused axes are empty vectors.

§values: Vec<f32>

A flattened values list

§values_unit: f32

Unit of values.

currently it is most likely the same as Units::time.

Trait Implementations§

Source§

impl Debug for LUT

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for LUT

§

impl RefUnwindSafe for LUT

§

impl Send for LUT

§

impl Sync for LUT

§

impl Unpin for LUT

§

impl UnwindSafe for LUT

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.