[−][src]Enum nsi::argument::ArgData
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]
pub fn from(v: DoubleMatrices<'a>) -> ArgData<'a, 'b>
[src]
impl<'a, 'b> From<DoubleMatrix<'a>> for ArgData<'a, 'b>
[src]
pub fn from(v: DoubleMatrix<'a>) -> 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]
pub fn from(v: References<'b>) -> 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.
pub fn try_into(self) -> Result<Callback<'b>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Color<'a>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Colors<'a>, Self::Error>
[src]
impl<'a, 'b> TryInto<Double> for ArgData<'a, 'b>
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Double, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<DoubleMatrices<'a>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<DoubleMatrix<'a>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Doubles<'a>, Self::Error>
[src]
impl<'a, 'b> TryInto<Float> for ArgData<'a, 'b>
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Float, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Floats<'a>, Self::Error>
[src]
impl<'a, 'b> TryInto<Integer> for ArgData<'a, 'b>
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Integer, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Integers<'a>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Matrices<'a>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Matrix<'a>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Normal<'a>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Normals<'a>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Point<'a>, Self::Error>
[src]
impl<'a, 'b> TryInto<Pointer> for ArgData<'a, 'b>
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Pointer, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Pointers<'a>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Points<'a>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Reference<'b>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<References<'b>, Self::Error>
[src]
impl<'a, 'b> TryInto<String> for ArgData<'a, 'b>
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<String, Self::Error>
[src]
impl<'a, 'b> TryInto<Strings> for ArgData<'a, 'b>
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Strings, Self::Error>
[src]
impl<'a, 'b> TryInto<Unsigned> for ArgData<'a, 'b>
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Unsigned, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Unsigneds<'a>, Self::Error>
[src]
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.
pub fn try_into(self) -> Result<Vector<'a>, Self::Error>
[src]
impl<'a, 'b> TryInto<Vectors<'a>> for ArgData<'a, 'b>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,