[][src]Struct fbxcel::pull_parser::v7400::attribute::loaders::PrimitiveLoader

pub struct PrimitiveLoader<T>(_);

Loader for primitive types.

Supported types are: bool, i16 , i32, i64, f32, f64.

Trait Implementations

impl LoadAttribute for PrimitiveLoader<bool>[src]

type Output = bool

Result type on successful read.

fn load_i16(self, _: i16) -> Result<Self::Output>[src]

Loads i16 value.

fn load_i32(self, _: i32) -> Result<Self::Output>[src]

Loads i32 value.

fn load_i64(self, _: i64) -> Result<Self::Output>[src]

Loads i64 value.

fn load_f32(self, _: f32) -> Result<Self::Output>[src]

Loads f32 value.

fn load_f64(self, _: f64) -> Result<Self::Output>[src]

Loads f64 value.

fn load_seq_bool(
    self,
    _: impl Iterator<Item = Result<bool>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads boolean array.

fn load_seq_i32(
    self,
    _: impl Iterator<Item = Result<i32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i32 array.

fn load_seq_i64(
    self,
    _: impl Iterator<Item = Result<i64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i64 array.

fn load_seq_f32(
    self,
    _: impl Iterator<Item = Result<f32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f32 array.

fn load_seq_f64(
    self,
    _: impl Iterator<Item = Result<f64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f64 array.

fn load_binary(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads binary value. Read more

fn load_binary_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads binary value on buffered reader. Read more

fn load_string(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads string value. Read more

fn load_string_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads string value on buffered reader. Read more

impl LoadAttribute for PrimitiveLoader<i16>[src]

type Output = i16

Result type on successful read.

fn load_bool(self, _: bool) -> Result<Self::Output>[src]

Loads boolean value.

fn load_i32(self, _: i32) -> Result<Self::Output>[src]

Loads i32 value.

fn load_i64(self, _: i64) -> Result<Self::Output>[src]

Loads i64 value.

fn load_f32(self, _: f32) -> Result<Self::Output>[src]

Loads f32 value.

fn load_f64(self, _: f64) -> Result<Self::Output>[src]

Loads f64 value.

fn load_seq_bool(
    self,
    _: impl Iterator<Item = Result<bool>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads boolean array.

fn load_seq_i32(
    self,
    _: impl Iterator<Item = Result<i32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i32 array.

fn load_seq_i64(
    self,
    _: impl Iterator<Item = Result<i64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i64 array.

fn load_seq_f32(
    self,
    _: impl Iterator<Item = Result<f32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f32 array.

fn load_seq_f64(
    self,
    _: impl Iterator<Item = Result<f64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f64 array.

fn load_binary(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads binary value. Read more

fn load_binary_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads binary value on buffered reader. Read more

fn load_string(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads string value. Read more

fn load_string_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads string value on buffered reader. Read more

impl LoadAttribute for PrimitiveLoader<i32>[src]

type Output = i32

Result type on successful read.

fn load_bool(self, _: bool) -> Result<Self::Output>[src]

Loads boolean value.

fn load_i16(self, _: i16) -> Result<Self::Output>[src]

Loads i16 value.

fn load_i64(self, _: i64) -> Result<Self::Output>[src]

Loads i64 value.

fn load_f32(self, _: f32) -> Result<Self::Output>[src]

Loads f32 value.

fn load_f64(self, _: f64) -> Result<Self::Output>[src]

Loads f64 value.

fn load_seq_bool(
    self,
    _: impl Iterator<Item = Result<bool>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads boolean array.

fn load_seq_i32(
    self,
    _: impl Iterator<Item = Result<i32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i32 array.

fn load_seq_i64(
    self,
    _: impl Iterator<Item = Result<i64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i64 array.

fn load_seq_f32(
    self,
    _: impl Iterator<Item = Result<f32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f32 array.

fn load_seq_f64(
    self,
    _: impl Iterator<Item = Result<f64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f64 array.

fn load_binary(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads binary value. Read more

fn load_binary_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads binary value on buffered reader. Read more

fn load_string(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads string value. Read more

fn load_string_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads string value on buffered reader. Read more

impl LoadAttribute for PrimitiveLoader<i64>[src]

type Output = i64

Result type on successful read.

fn load_bool(self, _: bool) -> Result<Self::Output>[src]

Loads boolean value.

fn load_i16(self, _: i16) -> Result<Self::Output>[src]

Loads i16 value.

fn load_i32(self, _: i32) -> Result<Self::Output>[src]

Loads i32 value.

fn load_f32(self, _: f32) -> Result<Self::Output>[src]

Loads f32 value.

fn load_f64(self, _: f64) -> Result<Self::Output>[src]

Loads f64 value.

fn load_seq_bool(
    self,
    _: impl Iterator<Item = Result<bool>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads boolean array.

fn load_seq_i32(
    self,
    _: impl Iterator<Item = Result<i32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i32 array.

fn load_seq_i64(
    self,
    _: impl Iterator<Item = Result<i64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i64 array.

fn load_seq_f32(
    self,
    _: impl Iterator<Item = Result<f32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f32 array.

fn load_seq_f64(
    self,
    _: impl Iterator<Item = Result<f64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f64 array.

fn load_binary(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads binary value. Read more

fn load_binary_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads binary value on buffered reader. Read more

fn load_string(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads string value. Read more

fn load_string_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads string value on buffered reader. Read more

impl LoadAttribute for PrimitiveLoader<f32>[src]

type Output = f32

Result type on successful read.

fn load_bool(self, _: bool) -> Result<Self::Output>[src]

Loads boolean value.

fn load_i16(self, _: i16) -> Result<Self::Output>[src]

Loads i16 value.

fn load_i32(self, _: i32) -> Result<Self::Output>[src]

Loads i32 value.

fn load_i64(self, _: i64) -> Result<Self::Output>[src]

Loads i64 value.

fn load_f64(self, _: f64) -> Result<Self::Output>[src]

Loads f64 value.

fn load_seq_bool(
    self,
    _: impl Iterator<Item = Result<bool>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads boolean array.

fn load_seq_i32(
    self,
    _: impl Iterator<Item = Result<i32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i32 array.

fn load_seq_i64(
    self,
    _: impl Iterator<Item = Result<i64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i64 array.

fn load_seq_f32(
    self,
    _: impl Iterator<Item = Result<f32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f32 array.

fn load_seq_f64(
    self,
    _: impl Iterator<Item = Result<f64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f64 array.

fn load_binary(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads binary value. Read more

fn load_binary_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads binary value on buffered reader. Read more

fn load_string(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads string value. Read more

fn load_string_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads string value on buffered reader. Read more

impl LoadAttribute for PrimitiveLoader<f64>[src]

type Output = f64

Result type on successful read.

fn load_bool(self, _: bool) -> Result<Self::Output>[src]

Loads boolean value.

fn load_i16(self, _: i16) -> Result<Self::Output>[src]

Loads i16 value.

fn load_i32(self, _: i32) -> Result<Self::Output>[src]

Loads i32 value.

fn load_i64(self, _: i64) -> Result<Self::Output>[src]

Loads i64 value.

fn load_f32(self, _: f32) -> Result<Self::Output>[src]

Loads f32 value.

fn load_seq_bool(
    self,
    _: impl Iterator<Item = Result<bool>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads boolean array.

fn load_seq_i32(
    self,
    _: impl Iterator<Item = Result<i32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i32 array.

fn load_seq_i64(
    self,
    _: impl Iterator<Item = Result<i64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads i64 array.

fn load_seq_f32(
    self,
    _: impl Iterator<Item = Result<f32>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f32 array.

fn load_seq_f64(
    self,
    _: impl Iterator<Item = Result<f64>>,
    _len: usize
) -> Result<Self::Output>
[src]

Loads f64 array.

fn load_binary(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads binary value. Read more

fn load_binary_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads binary value on buffered reader. Read more

fn load_string(self, _: impl Read, _len: u64) -> Result<Self::Output>[src]

Loads string value. Read more

fn load_string_buffered(
    self,
    reader: impl BufRead,
    len: u64
) -> Result<Self::Output>
[src]

Loads string value on buffered reader. Read more

impl<T: PartialOrd> PartialOrd<PrimitiveLoader<T>> for PrimitiveLoader<T>[src]

impl<T: Copy> Copy for PrimitiveLoader<T>[src]

impl<T: PartialEq> PartialEq<PrimitiveLoader<T>> for PrimitiveLoader<T>[src]

impl<T: Default> Default for PrimitiveLoader<T>[src]

impl<T: Clone> Clone for PrimitiveLoader<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Ord> Ord for PrimitiveLoader<T>[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Returns max if self is greater than max, and min if self is less than min. Otherwise this will return self. Panics if min > max. Read more

impl<T: Eq> Eq for PrimitiveLoader<T>[src]

impl<T: Debug> Debug for PrimitiveLoader<T>[src]

impl<T: Hash> Hash for PrimitiveLoader<T>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<T> Send for PrimitiveLoader<T> where
    T: Send

impl<T> Sync for PrimitiveLoader<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]