Struct usd::pxr::vt::Value

source ·
#[repr(C)]
pub struct Value { /* private fields */ }
Expand description

Provides a container which may hold any type, and provides introspection and iteration over array types. See \a VtIsArray for more info.

Implementations§

source§

impl Value

source

pub fn new() -> Self

source

pub fn try_as_ref(&self) -> Result<&str>

Returns a &str so long as the Value contains a Unicode string.

Trait Implementations§

source§

impl AsRef<ArrayAsset> for Value

source§

fn as_ref(&self) -> &ArrayAsset

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayBool> for Value

source§

fn as_ref(&self) -> &ArrayBool

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayDouble> for Value

source§

fn as_ref(&self) -> &ArrayDouble

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayFloat> for Value

source§

fn as_ref(&self) -> &ArrayFloat

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayHalf> for Value

source§

fn as_ref(&self) -> &ArrayHalf

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayInt> for Value

source§

fn as_ref(&self) -> &ArrayInt

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayInt64> for Value

source§

fn as_ref(&self) -> &ArrayInt64

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayMatrix2d> for Value

source§

fn as_ref(&self) -> &ArrayMatrix2d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayMatrix3d> for Value

source§

fn as_ref(&self) -> &ArrayMatrix3d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayMatrix4d> for Value

source§

fn as_ref(&self) -> &ArrayMatrix4d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayQuatd> for Value

source§

fn as_ref(&self) -> &ArrayQuatd

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayQuatf> for Value

source§

fn as_ref(&self) -> &ArrayQuatf

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayQuath> for Value

source§

fn as_ref(&self) -> &ArrayQuath

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayTimeCode> for Value

source§

fn as_ref(&self) -> &ArrayTimeCode

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayToken> for Value

source§

fn as_ref(&self) -> &ArrayToken

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayUChar> for Value

source§

fn as_ref(&self) -> &ArrayUChar

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayUInt> for Value

source§

fn as_ref(&self) -> &ArrayUInt

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayUInt64> for Value

source§

fn as_ref(&self) -> &ArrayUInt64

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec2d> for Value

source§

fn as_ref(&self) -> &ArrayVec2d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec2f> for Value

source§

fn as_ref(&self) -> &ArrayVec2f

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec2h> for Value

source§

fn as_ref(&self) -> &ArrayVec2h

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec2i> for Value

source§

fn as_ref(&self) -> &ArrayVec2i

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec3d> for Value

source§

fn as_ref(&self) -> &ArrayVec3d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec3f> for Value

source§

fn as_ref(&self) -> &ArrayVec3f

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec3h> for Value

source§

fn as_ref(&self) -> &ArrayVec3h

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec3i> for Value

source§

fn as_ref(&self) -> &ArrayVec3i

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec4d> for Value

source§

fn as_ref(&self) -> &ArrayVec4d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec4f> for Value

source§

fn as_ref(&self) -> &ArrayVec4f

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec4h> for Value

source§

fn as_ref(&self) -> &ArrayVec4h

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayVec4i> for Value

source§

fn as_ref(&self) -> &ArrayVec4i

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Asset> for Value

source§

fn as_ref(&self) -> &Asset

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Bool> for Value

source§

fn as_ref(&self) -> &Bool

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Double> for Value

source§

fn as_ref(&self) -> &Double

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Float> for Value

source§

fn as_ref(&self) -> &Float

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Half> for Value

source§

fn as_ref(&self) -> &Half

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Int> for Value

source§

fn as_ref(&self) -> &Int

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Int64> for Value

source§

fn as_ref(&self) -> &Int64

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Matrix2d> for Value

source§

fn as_ref(&self) -> &Matrix2d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Matrix3d> for Value

source§

fn as_ref(&self) -> &Matrix3d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Matrix4d> for Value

source§

fn as_ref(&self) -> &Matrix4d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Quatd> for Value

source§

fn as_ref(&self) -> &Quatd

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Quatf> for Value

source§

fn as_ref(&self) -> &Quatf

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Quath> for Value

source§

fn as_ref(&self) -> &Quath

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<TimeCode> for Value

source§

fn as_ref(&self) -> &TimeCode

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Token> for Value

source§

fn as_ref(&self) -> &Token

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UChar> for Value

source§

fn as_ref(&self) -> &UChar

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UInt> for Value

source§

fn as_ref(&self) -> &UInt

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UInt64> for Value

source§

fn as_ref(&self) -> &UInt64

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec2d> for Value

source§

fn as_ref(&self) -> &Vec2d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec2f> for Value

source§

fn as_ref(&self) -> &Vec2f

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec2h> for Value

source§

fn as_ref(&self) -> &Vec2h

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec2i> for Value

source§

fn as_ref(&self) -> &Vec2i

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec3d> for Value

source§

fn as_ref(&self) -> &Vec3d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec3f> for Value

source§

fn as_ref(&self) -> &Vec3f

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec3h> for Value

source§

fn as_ref(&self) -> &Vec3h

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec3i> for Value

source§

fn as_ref(&self) -> &Vec3i

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec4d> for Value

source§

fn as_ref(&self) -> &Vec4d

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec4f> for Value

source§

fn as_ref(&self) -> &Vec4f

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec4h> for Value

source§

fn as_ref(&self) -> &Vec4h

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Vec4i> for Value

source§

fn as_ref(&self) -> &Vec4i

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Value

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for Value

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Drop for Value

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl From<&ArrayAsset> for Value

source§

fn from(other: &ArrayAsset) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayBool> for Value

source§

fn from(other: &ArrayBool) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayDouble> for Value

source§

fn from(other: &ArrayDouble) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayFloat> for Value

source§

fn from(other: &ArrayFloat) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayHalf> for Value

source§

fn from(other: &ArrayHalf) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayInt> for Value

source§

fn from(other: &ArrayInt) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayInt64> for Value

source§

fn from(other: &ArrayInt64) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayMatrix2d> for Value

source§

fn from(other: &ArrayMatrix2d) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayMatrix3d> for Value

source§

fn from(other: &ArrayMatrix3d) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayMatrix4d> for Value

source§

fn from(other: &ArrayMatrix4d) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayQuatd> for Value

source§

fn from(other: &ArrayQuatd) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayQuatf> for Value

source§

fn from(other: &ArrayQuatf) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayQuath> for Value

source§

fn from(other: &ArrayQuath) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayTimeCode> for Value

source§

fn from(other: &ArrayTimeCode) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayToken> for Value

source§

fn from(other: &ArrayToken) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayUChar> for Value

source§

fn from(other: &ArrayUChar) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayUInt> for Value

source§

fn from(other: &ArrayUInt) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayUInt64> for Value

source§

fn from(other: &ArrayUInt64) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec2d> for Value

source§

fn from(other: &ArrayVec2d) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec2f> for Value

source§

fn from(other: &ArrayVec2f) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec2h> for Value

source§

fn from(other: &ArrayVec2h) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec2i> for Value

source§

fn from(other: &ArrayVec2i) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec3d> for Value

source§

fn from(other: &ArrayVec3d) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec3f> for Value

source§

fn from(other: &ArrayVec3f) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec3h> for Value

source§

fn from(other: &ArrayVec3h) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec3i> for Value

source§

fn from(other: &ArrayVec3i) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec4d> for Value

source§

fn from(other: &ArrayVec4d) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec4f> for Value

source§

fn from(other: &ArrayVec4f) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec4h> for Value

source§

fn from(other: &ArrayVec4h) -> Self

Converts to this type from the input type.
source§

impl From<&ArrayVec4i> for Value

source§

fn from(other: &ArrayVec4i) -> Self

Converts to this type from the input type.
source§

impl From<&Asset> for Value

source§

fn from(other: &Asset) -> Self

Converts to this type from the input type.
source§

impl From<&Bool> for Value

source§

fn from(other: &Bool) -> Self

Converts to this type from the input type.
source§

impl From<&Double> for Value

source§

fn from(other: &Double) -> Self

Converts to this type from the input type.
source§

impl From<&Float> for Value

source§

fn from(other: &Float) -> Self

Converts to this type from the input type.
source§

impl From<&Half> for Value

source§

fn from(other: &Half) -> Self

Converts to this type from the input type.
source§

impl From<&Int> for Value

source§

fn from(other: &Int) -> Self

Converts to this type from the input type.
source§

impl From<&Int64> for Value

source§

fn from(other: &Int64) -> Self

Converts to this type from the input type.
source§

impl From<&Matrix2d> for Value

source§

fn from(other: &Matrix2d) -> Self

Converts to this type from the input type.
source§

impl From<&Matrix3d> for Value

source§

fn from(other: &Matrix3d) -> Self

Converts to this type from the input type.
source§

impl From<&Matrix4d> for Value

source§

fn from(other: &Matrix4d) -> Self

Converts to this type from the input type.
source§

impl From<&Quatd> for Value

source§

fn from(other: &Quatd) -> Self

Converts to this type from the input type.
source§

impl From<&Quatf> for Value

source§

fn from(other: &Quatf) -> Self

Converts to this type from the input type.
source§

impl From<&Quath> for Value

source§

fn from(other: &Quath) -> Self

Converts to this type from the input type.
source§

impl From<&TimeCode> for Value

source§

fn from(other: &TimeCode) -> Self

Converts to this type from the input type.
source§

impl From<&Token> for Value

source§

fn from(other: &Token) -> Self

Converts to this type from the input type.
source§

impl From<&UChar> for Value

source§

fn from(other: &UChar) -> Self

Converts to this type from the input type.
source§

impl From<&UInt> for Value

source§

fn from(other: &UInt) -> Self

Converts to this type from the input type.
source§

impl From<&UInt64> for Value

source§

fn from(other: &UInt64) -> Self

Converts to this type from the input type.
source§

impl From<&Vec2d> for Value

source§

fn from(other: &Vec2d) -> Self

Converts to this type from the input type.
source§

impl From<&Vec2f> for Value

source§

fn from(other: &Vec2f) -> Self

Converts to this type from the input type.
source§

impl From<&Vec2h> for Value

source§

fn from(other: &Vec2h) -> Self

Converts to this type from the input type.
source§

impl From<&Vec2i> for Value

source§

fn from(other: &Vec2i) -> Self

Converts to this type from the input type.
source§

impl From<&Vec3d> for Value

source§

fn from(other: &Vec3d) -> Self

Converts to this type from the input type.
source§

impl From<&Vec3f> for Value

source§

fn from(other: &Vec3f) -> Self

Converts to this type from the input type.
source§

impl From<&Vec3h> for Value

source§

fn from(other: &Vec3h) -> Self

Converts to this type from the input type.
source§

impl From<&Vec3i> for Value

source§

fn from(other: &Vec3i) -> Self

Converts to this type from the input type.
source§

impl From<&Vec4d> for Value

source§

fn from(other: &Vec4d) -> Self

Converts to this type from the input type.
source§

impl From<&Vec4f> for Value

source§

fn from(other: &Vec4f) -> Self

Converts to this type from the input type.
source§

impl From<&Vec4h> for Value

source§

fn from(other: &Vec4h) -> Self

Converts to this type from the input type.
source§

impl From<&Vec4i> for Value

source§

fn from(other: &Vec4i) -> Self

Converts to this type from the input type.
source§

impl TryFrom<&str> for Value

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(other: &str) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.