[][src]Enum nsi::argument::ArgData

pub enum ArgData<'a, 'b> {
    Float(Float),
    Floats(Floats<'a>),
    Double(Double),
    Doubles(Doubles<'a>),
    Integer(Integer),
    Integers(Integers<'a>),
    Unsigned(Unsigned),
    Unsigneds(Unsigneds<'a>),
    String(String),
    Strings(Strings),
    Color(Color<'a>),
    Colors(Colors<'a>),
    Point(Point<'a>),
    Points(Points<'a>),
    Vector(Vector<'a>),
    Vectors(Vectors<'a>),
    Normal(Normal<'a>),
    Normasl(Normals<'a>),
    Matrix(Matrix<'a>),
    Matrices(Matrices<'a>),
    DoubleMatrix(DoubleMatrix<'a>),
    DoubleMatrices(DoubleMatrices<'a>),
    Reference(Reference<'b>),
    References(References<'b>),
    Callback(Callback<'b>),
    Pointer(Pointer),
    Pointers(Pointers<'a>),
}

A variant describing data passed to the renderer.

Lifetimes

Lifetime 'a is for any tuple or array type as these are passed as references and only need to live as long as the function call where they get passed.

Lifetime 'b is for the arbitrary reference type. This is pegged to the lifetime of the Context. Use this to pass arbitray Rust data through the FFI boundary.

Variants

Float(Float)

Single [f32) value.

Floats(Floats<'a>)
Double(Double)

Single f64 value.

Doubles(Doubles<'a>)
Integer(Integer)

Single i32 value.

Integers(Integers<'a>)

An [i32] array.

Unsigned(Unsigned)

Single i32 value.

Unsigneds(Unsigneds<'a>)

An [i32] array.

String(String)

A String.

Strings(Strings)

A [String] array.

Color(Color<'a>)

Color in linear space, given as a red, green, blue triplet of f32 values; usually in the range 0..1.

Colors(Colors<'a>)

An arry of colors.

Point(Point<'a>)

Point, given as three f32 values.

Points(Points<'a>)
Vector(Vector<'a>)

Vector, given as three f32 values.

Vectors(Vectors<'a>)
Normal(Normal<'a>)

Normal vector, given as three f32 values. values.

Normasl(Normals<'a>)
Matrix(Matrix<'a>)

Transformation matrix, given as 16 f32 floating point datas.

Matrices(Matrices<'a>)
DoubleMatrix(DoubleMatrix<'a>)

Transformation matrix, given as 16 f64 floating point datas.

DoubleMatrices(DoubleMatrices<'a>)
Reference(Reference<'b>)

Reference to arbitrary data.

References(References<'b>)
Callback(Callback<'b>)

Callback.

Pointer(Pointer)

Raw (*const T) pointer.

Pointers(Pointers<'a>)

Trait Implementations

impl<'a, 'b> From<Callback<'b>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Color<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Colors<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Double> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<DoubleMatrices<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<DoubleMatrix<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Doubles<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Float> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Floats<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Integer> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Integers<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Matrices<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Matrix<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Normal<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Normals<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Point<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Pointer> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Pointers<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Points<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Reference<'b>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<References<'b>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<String> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Strings> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Unsigned> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Unsigneds<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Vector<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> From<Vectors<'a>> for ArgData<'a, 'b>[src]

impl<'a, 'b> TryInto<Callback<'b>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Color<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Colors<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Double> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<DoubleMatrices<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<DoubleMatrix<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Doubles<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Float> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Floats<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Integer> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Integers<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Matrices<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Matrix<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Normal<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Normals<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Point<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Pointer> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Pointers<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Points<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Reference<'b>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<References<'b>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<String> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Strings> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Unsigned> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Unsigneds<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Vector<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a, 'b> TryInto<Vectors<'a>> for ArgData<'a, 'b>[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a, 'b> RefUnwindSafe for ArgData<'a, 'b>

impl<'a, 'b> !Send for ArgData<'a, 'b>

impl<'a, 'b> !Sync for ArgData<'a, 'b>

impl<'a, 'b> Unpin for ArgData<'a, 'b>

impl<'a, 'b> !UnwindSafe for ArgData<'a, 'b>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,