Skip to main content

Value

Enum Value 

Source
pub enum Value {
Show 88 variants None, Bool(bool), BoolVec(Vec<bool>), Uchar(u8), UcharVec(Vec<u8>), Int(i32), IntVec(Vec<i32>), Uint(u32), UintVec(Vec<u32>), Int64(i64), Int64Vec(Vec<i64>), Uint64(u64), Uint64Vec(Vec<u64>), Half(f16), HalfVec(Vec<f16>), Float(f32), FloatVec(Vec<f32>), Double(f64), DoubleVec(Vec<f64>), String(String), StringVec(Vec<String>), Token(Token), TokenVec(Vec<Token>), AssetPath(AssetPath), AssetPathVec(Vec<AssetPath>), Quath(Quath), Quatf(Quatf), Quatd(Quatd), QuathVec(Vec<Quath>), QuatfVec(Vec<Quatf>), QuatdVec(Vec<Quatd>), Vec2h(Vec2h), Vec2f(Vec2f), Vec2d(Vec2d), Vec2i(Vec2i), Vec2hVec(Vec<Vec2h>), Vec2fVec(Vec<Vec2f>), Vec2dVec(Vec<Vec2d>), Vec2iVec(Vec<Vec2i>), Vec3h(Vec3h), Vec3f(Vec3f), Vec3d(Vec3d), Vec3i(Vec3i), Vec3hVec(Vec<Vec3h>), Vec3fVec(Vec<Vec3f>), Vec3dVec(Vec<Vec3d>), Vec3iVec(Vec<Vec3i>), Vec4h(Vec4h), Vec4f(Vec4f), Vec4d(Vec4d), Vec4i(Vec4i), Vec4hVec(Vec<Vec4h>), Vec4fVec(Vec<Vec4f>), Vec4dVec(Vec<Vec4d>), Vec4iVec(Vec<Vec4i>), Matrix2d(Mat2d), Matrix3d(Mat3d), Matrix4d(Matrix4d), Matrix2dVec(Vec<Mat2d>), Matrix3dVec(Vec<Mat3d>), Matrix4dVec(Vec<Matrix4d>), Specifier(Specifier), Permission(Permission), Variability(Variability), Dictionary(HashMap<String, Value>), TokenListOp(TokenListOp), StringListOp(StringListOp), PathListOp(PathListOp), ReferenceListOp(ReferenceListOp), IntListOp(IntListOp), Int64ListOp(Int64ListOp), UIntListOp(UintListOp), UInt64ListOp(Uint64ListOp), PayloadListOp(PayloadListOp), Payload(Payload), PathVec(Vec<Path>), Relocates(RelocateList), VariantSelectionMap(HashMap<String, String>), TimeSamples(TimeSampleMap), LayerOffsetVec(Vec<LayerOffset>), ValueBlock, Value, ValueVec(Vec<Value>), UnregisteredValue(String), UnregisteredValueListOp(StringListOp), TimeCode(TimeCode), TimeCodeVec(Vec<TimeCode>), PathExpression(String),
}
Expand description

A type-erased container for scene description data loaded from a USD file.

This is the Rust equivalent of USD’s VtValue, representing any value that can appear in a scene description layer. Each variant corresponds to a USD data type.

Vector and matrix variant suffixes indicate the element type:

  • df64 (double)
  • ff32 (float)
  • hf16 (half)
  • ii32 (int)

Type-safe extraction is supported via TryFrom<Value> implementations for common Rust types (e.g. f32, String, gf::Vec3f).

Variants§

§

None

None value, only produced by expressions (not directly assignable).

§

Bool(bool)

§

BoolVec(Vec<bool>)

§

Uchar(u8)

§

UcharVec(Vec<u8>)

§

Int(i32)

§

IntVec(Vec<i32>)

§

Uint(u32)

§

UintVec(Vec<u32>)

§

Int64(i64)

§

Int64Vec(Vec<i64>)

§

Uint64(u64)

§

Uint64Vec(Vec<u64>)

§

Half(f16)

§

HalfVec(Vec<f16>)

§

Float(f32)

§

FloatVec(Vec<f32>)

§

Double(f64)

§

DoubleVec(Vec<f64>)

§

String(String)

§

StringVec(Vec<String>)

§

Token(Token)

§

TokenVec(Vec<Token>)

§

AssetPath(AssetPath)

§

AssetPathVec(Vec<AssetPath>)

§

Quath(Quath)

§

Quatf(Quatf)

§

Quatd(Quatd)

§

QuathVec(Vec<Quath>)

§

QuatfVec(Vec<Quatf>)

§

QuatdVec(Vec<Quatd>)

§

Vec2h(Vec2h)

§

Vec2f(Vec2f)

§

Vec2d(Vec2d)

§

Vec2i(Vec2i)

§

Vec2hVec(Vec<Vec2h>)

§

Vec2fVec(Vec<Vec2f>)

§

Vec2dVec(Vec<Vec2d>)

§

Vec2iVec(Vec<Vec2i>)

§

Vec3h(Vec3h)

§

Vec3f(Vec3f)

§

Vec3d(Vec3d)

§

Vec3i(Vec3i)

§

Vec3hVec(Vec<Vec3h>)

§

Vec3fVec(Vec<Vec3f>)

§

Vec3dVec(Vec<Vec3d>)

§

Vec3iVec(Vec<Vec3i>)

§

Vec4h(Vec4h)

§

Vec4f(Vec4f)

§

Vec4d(Vec4d)

§

Vec4i(Vec4i)

§

Vec4hVec(Vec<Vec4h>)

§

Vec4fVec(Vec<Vec4f>)

§

Vec4dVec(Vec<Vec4d>)

§

Vec4iVec(Vec<Vec4i>)

§

Matrix2d(Mat2d)

§

Matrix3d(Mat3d)

§

Matrix4d(Matrix4d)

§

Matrix2dVec(Vec<Mat2d>)

§

Matrix3dVec(Vec<Mat3d>)

§

Matrix4dVec(Vec<Matrix4d>)

§

Specifier(Specifier)

§

Permission(Permission)

§

Variability(Variability)

§

Dictionary(HashMap<String, Value>)

§

TokenListOp(TokenListOp)

§

StringListOp(StringListOp)

§

PathListOp(PathListOp)

§

ReferenceListOp(ReferenceListOp)

§

IntListOp(IntListOp)

§

Int64ListOp(Int64ListOp)

§

UIntListOp(UintListOp)

§

UInt64ListOp(Uint64ListOp)

§

PayloadListOp(PayloadListOp)

§

Payload(Payload)

§

PathVec(Vec<Path>)

§

Relocates(RelocateList)

Layer-level relocates: (source, target) path pairs for namespace remapping.

§

VariantSelectionMap(HashMap<String, String>)

§

TimeSamples(TimeSampleMap)

§

LayerOffsetVec(Vec<LayerOffset>)

§

ValueBlock

§

Value

§

ValueVec(Vec<Value>)

Heterogeneous array (e.g. spline knots). Each element is a Value.

§

UnregisteredValue(String)

§

UnregisteredValueListOp(StringListOp)

§

TimeCode(TimeCode)

§

TimeCodeVec(Vec<TimeCode>)

§

PathExpression(String)

Implementations§

Source§

impl Value

Source

pub const fn is_none(&self) -> bool

Returns true if the enum is Value::None otherwise false

Source

pub const fn is_bool(&self) -> bool

Returns true if the enum is Value::Bool otherwise false

Source

pub const fn is_bool_vec(&self) -> bool

Returns true if the enum is Value::BoolVec otherwise false

Source

pub const fn is_uchar(&self) -> bool

Returns true if the enum is Value::Uchar otherwise false

Source

pub const fn is_uchar_vec(&self) -> bool

Returns true if the enum is Value::UcharVec otherwise false

Source

pub const fn is_int(&self) -> bool

Returns true if the enum is Value::Int otherwise false

Source

pub const fn is_int_vec(&self) -> bool

Returns true if the enum is Value::IntVec otherwise false

Source

pub const fn is_uint(&self) -> bool

Returns true if the enum is Value::Uint otherwise false

Source

pub const fn is_uint_vec(&self) -> bool

Returns true if the enum is Value::UintVec otherwise false

Source

pub const fn is_int_64(&self) -> bool

Returns true if the enum is Value::Int64 otherwise false

Source

pub const fn is_int_64_vec(&self) -> bool

Returns true if the enum is Value::Int64Vec otherwise false

Source

pub const fn is_uint_64(&self) -> bool

Returns true if the enum is Value::Uint64 otherwise false

Source

pub const fn is_uint_64_vec(&self) -> bool

Returns true if the enum is Value::Uint64Vec otherwise false

Source

pub const fn is_half(&self) -> bool

Returns true if the enum is Value::Half otherwise false

Source

pub const fn is_half_vec(&self) -> bool

Returns true if the enum is Value::HalfVec otherwise false

Source

pub const fn is_float(&self) -> bool

Returns true if the enum is Value::Float otherwise false

Source

pub const fn is_float_vec(&self) -> bool

Returns true if the enum is Value::FloatVec otherwise false

Source

pub const fn is_double(&self) -> bool

Returns true if the enum is Value::Double otherwise false

Source

pub const fn is_double_vec(&self) -> bool

Returns true if the enum is Value::DoubleVec otherwise false

Source

pub const fn is_string(&self) -> bool

Returns true if the enum is Value::String otherwise false

Source

pub const fn is_string_vec(&self) -> bool

Returns true if the enum is Value::StringVec otherwise false

Source

pub const fn is_token(&self) -> bool

Returns true if the enum is Value::Token otherwise false

Source

pub const fn is_token_vec(&self) -> bool

Returns true if the enum is Value::TokenVec otherwise false

Source

pub const fn is_asset_path(&self) -> bool

Returns true if the enum is Value::AssetPath otherwise false

Source

pub const fn is_asset_path_vec(&self) -> bool

Returns true if the enum is Value::AssetPathVec otherwise false

Source

pub const fn is_quath(&self) -> bool

Returns true if the enum is Value::Quath otherwise false

Source

pub const fn is_quatf(&self) -> bool

Returns true if the enum is Value::Quatf otherwise false

Source

pub const fn is_quatd(&self) -> bool

Returns true if the enum is Value::Quatd otherwise false

Source

pub const fn is_quath_vec(&self) -> bool

Returns true if the enum is Value::QuathVec otherwise false

Source

pub const fn is_quatf_vec(&self) -> bool

Returns true if the enum is Value::QuatfVec otherwise false

Source

pub const fn is_quatd_vec(&self) -> bool

Returns true if the enum is Value::QuatdVec otherwise false

Source

pub const fn is_vec_2h(&self) -> bool

Returns true if the enum is Value::Vec2h otherwise false

Source

pub const fn is_vec_2f(&self) -> bool

Returns true if the enum is Value::Vec2f otherwise false

Source

pub const fn is_vec_2d(&self) -> bool

Returns true if the enum is Value::Vec2d otherwise false

Source

pub const fn is_vec_2i(&self) -> bool

Returns true if the enum is Value::Vec2i otherwise false

Source

pub const fn is_vec_2h_vec(&self) -> bool

Returns true if the enum is Value::Vec2hVec otherwise false

Source

pub const fn is_vec_2f_vec(&self) -> bool

Returns true if the enum is Value::Vec2fVec otherwise false

Source

pub const fn is_vec_2d_vec(&self) -> bool

Returns true if the enum is Value::Vec2dVec otherwise false

Source

pub const fn is_vec_2i_vec(&self) -> bool

Returns true if the enum is Value::Vec2iVec otherwise false

Source

pub const fn is_vec_3h(&self) -> bool

Returns true if the enum is Value::Vec3h otherwise false

Source

pub const fn is_vec_3f(&self) -> bool

Returns true if the enum is Value::Vec3f otherwise false

Source

pub const fn is_vec_3d(&self) -> bool

Returns true if the enum is Value::Vec3d otherwise false

Source

pub const fn is_vec_3i(&self) -> bool

Returns true if the enum is Value::Vec3i otherwise false

Source

pub const fn is_vec_3h_vec(&self) -> bool

Returns true if the enum is Value::Vec3hVec otherwise false

Source

pub const fn is_vec_3f_vec(&self) -> bool

Returns true if the enum is Value::Vec3fVec otherwise false

Source

pub const fn is_vec_3d_vec(&self) -> bool

Returns true if the enum is Value::Vec3dVec otherwise false

Source

pub const fn is_vec_3i_vec(&self) -> bool

Returns true if the enum is Value::Vec3iVec otherwise false

Source

pub const fn is_vec_4h(&self) -> bool

Returns true if the enum is Value::Vec4h otherwise false

Source

pub const fn is_vec_4f(&self) -> bool

Returns true if the enum is Value::Vec4f otherwise false

Source

pub const fn is_vec_4d(&self) -> bool

Returns true if the enum is Value::Vec4d otherwise false

Source

pub const fn is_vec_4i(&self) -> bool

Returns true if the enum is Value::Vec4i otherwise false

Source

pub const fn is_vec_4h_vec(&self) -> bool

Returns true if the enum is Value::Vec4hVec otherwise false

Source

pub const fn is_vec_4f_vec(&self) -> bool

Returns true if the enum is Value::Vec4fVec otherwise false

Source

pub const fn is_vec_4d_vec(&self) -> bool

Returns true if the enum is Value::Vec4dVec otherwise false

Source

pub const fn is_vec_4i_vec(&self) -> bool

Returns true if the enum is Value::Vec4iVec otherwise false

Source

pub const fn is_matrix_2d(&self) -> bool

Returns true if the enum is Value::Matrix2d otherwise false

Source

pub const fn is_matrix_3d(&self) -> bool

Returns true if the enum is Value::Matrix3d otherwise false

Source

pub const fn is_matrix_4d(&self) -> bool

Returns true if the enum is Value::Matrix4d otherwise false

Source

pub const fn is_matrix_2d_vec(&self) -> bool

Returns true if the enum is Value::Matrix2dVec otherwise false

Source

pub const fn is_matrix_3d_vec(&self) -> bool

Returns true if the enum is Value::Matrix3dVec otherwise false

Source

pub const fn is_matrix_4d_vec(&self) -> bool

Returns true if the enum is Value::Matrix4dVec otherwise false

Source

pub const fn is_specifier(&self) -> bool

Returns true if the enum is Value::Specifier otherwise false

Source

pub const fn is_permission(&self) -> bool

Returns true if the enum is Value::Permission otherwise false

Source

pub const fn is_variability(&self) -> bool

Returns true if the enum is Value::Variability otherwise false

Source

pub const fn is_dictionary(&self) -> bool

Returns true if the enum is Value::Dictionary otherwise false

Source

pub const fn is_token_list_op(&self) -> bool

Returns true if the enum is Value::TokenListOp otherwise false

Source

pub const fn is_string_list_op(&self) -> bool

Returns true if the enum is Value::StringListOp otherwise false

Source

pub const fn is_path_list_op(&self) -> bool

Returns true if the enum is Value::PathListOp otherwise false

Source

pub const fn is_reference_list_op(&self) -> bool

Returns true if the enum is Value::ReferenceListOp otherwise false

Source

pub const fn is_int_list_op(&self) -> bool

Returns true if the enum is Value::IntListOp otherwise false

Source

pub const fn is_int_64_list_op(&self) -> bool

Returns true if the enum is Value::Int64ListOp otherwise false

Source

pub const fn is_u_int_list_op(&self) -> bool

Returns true if the enum is Value::UIntListOp otherwise false

Source

pub const fn is_u_int_64_list_op(&self) -> bool

Returns true if the enum is Value::UInt64ListOp otherwise false

Source

pub const fn is_payload_list_op(&self) -> bool

Returns true if the enum is Value::PayloadListOp otherwise false

Source

pub const fn is_payload(&self) -> bool

Returns true if the enum is Value::Payload otherwise false

Source

pub const fn is_path_vec(&self) -> bool

Returns true if the enum is Value::PathVec otherwise false

Source

pub const fn is_relocates(&self) -> bool

Returns true if the enum is Value::Relocates otherwise false

Source

pub const fn is_variant_selection_map(&self) -> bool

Returns true if the enum is Value::VariantSelectionMap otherwise false

Source

pub const fn is_time_samples(&self) -> bool

Returns true if the enum is Value::TimeSamples otherwise false

Source

pub const fn is_layer_offset_vec(&self) -> bool

Returns true if the enum is Value::LayerOffsetVec otherwise false

Source

pub const fn is_value_block(&self) -> bool

Returns true if the enum is Value::ValueBlock otherwise false

Source

pub const fn is_value(&self) -> bool

Returns true if the enum is Value::Value otherwise false

Source

pub const fn is_value_vec(&self) -> bool

Returns true if the enum is Value::ValueVec otherwise false

Source

pub const fn is_unregistered_value(&self) -> bool

Returns true if the enum is Value::UnregisteredValue otherwise false

Source

pub const fn is_unregistered_value_list_op(&self) -> bool

Returns true if the enum is Value::UnregisteredValueListOp otherwise false

Source

pub const fn is_time_code(&self) -> bool

Returns true if the enum is Value::TimeCode otherwise false

Source

pub const fn is_time_code_vec(&self) -> bool

Returns true if the enum is Value::TimeCodeVec otherwise false

Source

pub const fn is_path_expression(&self) -> bool

Returns true if the enum is Value::PathExpression otherwise false

Source§

impl Value

Source

pub fn try_as_bool(self) -> Option<bool>

Source

pub const fn try_as_bool_ref(&self) -> Option<&bool>

Source

pub fn try_as_bool_mut(&mut self) -> Option<&mut bool>

Source

pub fn try_as_bool_vec(self) -> Option<Vec<bool>>

Source

pub const fn try_as_bool_vec_ref(&self) -> Option<&Vec<bool>>

Source

pub fn try_as_bool_vec_mut(&mut self) -> Option<&mut Vec<bool>>

Source

pub fn try_as_uchar(self) -> Option<u8>

Source

pub const fn try_as_uchar_ref(&self) -> Option<&u8>

Source

pub fn try_as_uchar_mut(&mut self) -> Option<&mut u8>

Source

pub fn try_as_uchar_vec(self) -> Option<Vec<u8>>

Source

pub const fn try_as_uchar_vec_ref(&self) -> Option<&Vec<u8>>

Source

pub fn try_as_uchar_vec_mut(&mut self) -> Option<&mut Vec<u8>>

Source

pub fn try_as_int(self) -> Option<i32>

Source

pub const fn try_as_int_ref(&self) -> Option<&i32>

Source

pub fn try_as_int_mut(&mut self) -> Option<&mut i32>

Source

pub fn try_as_int_vec(self) -> Option<Vec<i32>>

Source

pub const fn try_as_int_vec_ref(&self) -> Option<&Vec<i32>>

Source

pub fn try_as_int_vec_mut(&mut self) -> Option<&mut Vec<i32>>

Source

pub fn try_as_uint(self) -> Option<u32>

Source

pub const fn try_as_uint_ref(&self) -> Option<&u32>

Source

pub fn try_as_uint_mut(&mut self) -> Option<&mut u32>

Source

pub fn try_as_uint_vec(self) -> Option<Vec<u32>>

Source

pub const fn try_as_uint_vec_ref(&self) -> Option<&Vec<u32>>

Source

pub fn try_as_uint_vec_mut(&mut self) -> Option<&mut Vec<u32>>

Source

pub fn try_as_int_64(self) -> Option<i64>

Source

pub const fn try_as_int_64_ref(&self) -> Option<&i64>

Source

pub fn try_as_int_64_mut(&mut self) -> Option<&mut i64>

Source

pub fn try_as_int_64_vec(self) -> Option<Vec<i64>>

Source

pub const fn try_as_int_64_vec_ref(&self) -> Option<&Vec<i64>>

Source

pub fn try_as_int_64_vec_mut(&mut self) -> Option<&mut Vec<i64>>

Source

pub fn try_as_uint_64(self) -> Option<u64>

Source

pub const fn try_as_uint_64_ref(&self) -> Option<&u64>

Source

pub fn try_as_uint_64_mut(&mut self) -> Option<&mut u64>

Source

pub fn try_as_uint_64_vec(self) -> Option<Vec<u64>>

Source

pub const fn try_as_uint_64_vec_ref(&self) -> Option<&Vec<u64>>

Source

pub fn try_as_uint_64_vec_mut(&mut self) -> Option<&mut Vec<u64>>

Source

pub fn try_as_half(self) -> Option<f16>

Source

pub const fn try_as_half_ref(&self) -> Option<&f16>

Source

pub fn try_as_half_mut(&mut self) -> Option<&mut f16>

Source

pub fn try_as_half_vec(self) -> Option<Vec<f16>>

Source

pub const fn try_as_half_vec_ref(&self) -> Option<&Vec<f16>>

Source

pub fn try_as_half_vec_mut(&mut self) -> Option<&mut Vec<f16>>

Source

pub fn try_as_float(self) -> Option<f32>

Source

pub const fn try_as_float_ref(&self) -> Option<&f32>

Source

pub fn try_as_float_mut(&mut self) -> Option<&mut f32>

Source

pub fn try_as_float_vec(self) -> Option<Vec<f32>>

Source

pub const fn try_as_float_vec_ref(&self) -> Option<&Vec<f32>>

Source

pub fn try_as_float_vec_mut(&mut self) -> Option<&mut Vec<f32>>

Source

pub fn try_as_double(self) -> Option<f64>

Source

pub const fn try_as_double_ref(&self) -> Option<&f64>

Source

pub fn try_as_double_mut(&mut self) -> Option<&mut f64>

Source

pub fn try_as_double_vec(self) -> Option<Vec<f64>>

Source

pub const fn try_as_double_vec_ref(&self) -> Option<&Vec<f64>>

Source

pub fn try_as_double_vec_mut(&mut self) -> Option<&mut Vec<f64>>

Source

pub fn try_as_string(self) -> Option<String>

Source

pub const fn try_as_string_ref(&self) -> Option<&String>

Source

pub fn try_as_string_mut(&mut self) -> Option<&mut String>

Source

pub fn try_as_string_vec(self) -> Option<Vec<String>>

Source

pub const fn try_as_string_vec_ref(&self) -> Option<&Vec<String>>

Source

pub fn try_as_string_vec_mut(&mut self) -> Option<&mut Vec<String>>

Source

pub fn try_as_token(self) -> Option<Token>

Source

pub const fn try_as_token_ref(&self) -> Option<&Token>

Source

pub fn try_as_token_mut(&mut self) -> Option<&mut Token>

Source

pub fn try_as_token_vec(self) -> Option<Vec<Token>>

Source

pub const fn try_as_token_vec_ref(&self) -> Option<&Vec<Token>>

Source

pub fn try_as_token_vec_mut(&mut self) -> Option<&mut Vec<Token>>

Source

pub fn try_as_asset_path(self) -> Option<AssetPath>

Source

pub const fn try_as_asset_path_ref(&self) -> Option<&AssetPath>

Source

pub fn try_as_asset_path_mut(&mut self) -> Option<&mut AssetPath>

Source

pub fn try_as_asset_path_vec(self) -> Option<Vec<AssetPath>>

Source

pub const fn try_as_asset_path_vec_ref(&self) -> Option<&Vec<AssetPath>>

Source

pub fn try_as_asset_path_vec_mut(&mut self) -> Option<&mut Vec<AssetPath>>

Source

pub fn try_as_quath(self) -> Option<Quath>

Source

pub const fn try_as_quath_ref(&self) -> Option<&Quath>

Source

pub fn try_as_quath_mut(&mut self) -> Option<&mut Quath>

Source

pub fn try_as_quatf(self) -> Option<Quatf>

Source

pub const fn try_as_quatf_ref(&self) -> Option<&Quatf>

Source

pub fn try_as_quatf_mut(&mut self) -> Option<&mut Quatf>

Source

pub fn try_as_quatd(self) -> Option<Quatd>

Source

pub const fn try_as_quatd_ref(&self) -> Option<&Quatd>

Source

pub fn try_as_quatd_mut(&mut self) -> Option<&mut Quatd>

Source

pub fn try_as_quath_vec(self) -> Option<Vec<Quath>>

Source

pub const fn try_as_quath_vec_ref(&self) -> Option<&Vec<Quath>>

Source

pub fn try_as_quath_vec_mut(&mut self) -> Option<&mut Vec<Quath>>

Source

pub fn try_as_quatf_vec(self) -> Option<Vec<Quatf>>

Source

pub const fn try_as_quatf_vec_ref(&self) -> Option<&Vec<Quatf>>

Source

pub fn try_as_quatf_vec_mut(&mut self) -> Option<&mut Vec<Quatf>>

Source

pub fn try_as_quatd_vec(self) -> Option<Vec<Quatd>>

Source

pub const fn try_as_quatd_vec_ref(&self) -> Option<&Vec<Quatd>>

Source

pub fn try_as_quatd_vec_mut(&mut self) -> Option<&mut Vec<Quatd>>

Source

pub fn try_as_vec_2h(self) -> Option<Vec2h>

Source

pub const fn try_as_vec_2h_ref(&self) -> Option<&Vec2h>

Source

pub fn try_as_vec_2h_mut(&mut self) -> Option<&mut Vec2h>

Source

pub fn try_as_vec_2f(self) -> Option<Vec2f>

Source

pub const fn try_as_vec_2f_ref(&self) -> Option<&Vec2f>

Source

pub fn try_as_vec_2f_mut(&mut self) -> Option<&mut Vec2f>

Source

pub fn try_as_vec_2d(self) -> Option<Vec2d>

Source

pub const fn try_as_vec_2d_ref(&self) -> Option<&Vec2d>

Source

pub fn try_as_vec_2d_mut(&mut self) -> Option<&mut Vec2d>

Source

pub fn try_as_vec_2i(self) -> Option<Vec2i>

Source

pub const fn try_as_vec_2i_ref(&self) -> Option<&Vec2i>

Source

pub fn try_as_vec_2i_mut(&mut self) -> Option<&mut Vec2i>

Source

pub fn try_as_vec_2h_vec(self) -> Option<Vec<Vec2h>>

Source

pub const fn try_as_vec_2h_vec_ref(&self) -> Option<&Vec<Vec2h>>

Source

pub fn try_as_vec_2h_vec_mut(&mut self) -> Option<&mut Vec<Vec2h>>

Source

pub fn try_as_vec_2f_vec(self) -> Option<Vec<Vec2f>>

Source

pub const fn try_as_vec_2f_vec_ref(&self) -> Option<&Vec<Vec2f>>

Source

pub fn try_as_vec_2f_vec_mut(&mut self) -> Option<&mut Vec<Vec2f>>

Source

pub fn try_as_vec_2d_vec(self) -> Option<Vec<Vec2d>>

Source

pub const fn try_as_vec_2d_vec_ref(&self) -> Option<&Vec<Vec2d>>

Source

pub fn try_as_vec_2d_vec_mut(&mut self) -> Option<&mut Vec<Vec2d>>

Source

pub fn try_as_vec_2i_vec(self) -> Option<Vec<Vec2i>>

Source

pub const fn try_as_vec_2i_vec_ref(&self) -> Option<&Vec<Vec2i>>

Source

pub fn try_as_vec_2i_vec_mut(&mut self) -> Option<&mut Vec<Vec2i>>

Source

pub fn try_as_vec_3h(self) -> Option<Vec3h>

Source

pub const fn try_as_vec_3h_ref(&self) -> Option<&Vec3h>

Source

pub fn try_as_vec_3h_mut(&mut self) -> Option<&mut Vec3h>

Source

pub fn try_as_vec_3f(self) -> Option<Vec3f>

Source

pub const fn try_as_vec_3f_ref(&self) -> Option<&Vec3f>

Source

pub fn try_as_vec_3f_mut(&mut self) -> Option<&mut Vec3f>

Source

pub fn try_as_vec_3d(self) -> Option<Vec3d>

Source

pub const fn try_as_vec_3d_ref(&self) -> Option<&Vec3d>

Source

pub fn try_as_vec_3d_mut(&mut self) -> Option<&mut Vec3d>

Source

pub fn try_as_vec_3i(self) -> Option<Vec3i>

Source

pub const fn try_as_vec_3i_ref(&self) -> Option<&Vec3i>

Source

pub fn try_as_vec_3i_mut(&mut self) -> Option<&mut Vec3i>

Source

pub fn try_as_vec_3h_vec(self) -> Option<Vec<Vec3h>>

Source

pub const fn try_as_vec_3h_vec_ref(&self) -> Option<&Vec<Vec3h>>

Source

pub fn try_as_vec_3h_vec_mut(&mut self) -> Option<&mut Vec<Vec3h>>

Source

pub fn try_as_vec_3f_vec(self) -> Option<Vec<Vec3f>>

Source

pub const fn try_as_vec_3f_vec_ref(&self) -> Option<&Vec<Vec3f>>

Source

pub fn try_as_vec_3f_vec_mut(&mut self) -> Option<&mut Vec<Vec3f>>

Source

pub fn try_as_vec_3d_vec(self) -> Option<Vec<Vec3d>>

Source

pub const fn try_as_vec_3d_vec_ref(&self) -> Option<&Vec<Vec3d>>

Source

pub fn try_as_vec_3d_vec_mut(&mut self) -> Option<&mut Vec<Vec3d>>

Source

pub fn try_as_vec_3i_vec(self) -> Option<Vec<Vec3i>>

Source

pub const fn try_as_vec_3i_vec_ref(&self) -> Option<&Vec<Vec3i>>

Source

pub fn try_as_vec_3i_vec_mut(&mut self) -> Option<&mut Vec<Vec3i>>

Source

pub fn try_as_vec_4h(self) -> Option<Vec4h>

Source

pub const fn try_as_vec_4h_ref(&self) -> Option<&Vec4h>

Source

pub fn try_as_vec_4h_mut(&mut self) -> Option<&mut Vec4h>

Source

pub fn try_as_vec_4f(self) -> Option<Vec4f>

Source

pub const fn try_as_vec_4f_ref(&self) -> Option<&Vec4f>

Source

pub fn try_as_vec_4f_mut(&mut self) -> Option<&mut Vec4f>

Source

pub fn try_as_vec_4d(self) -> Option<Vec4d>

Source

pub const fn try_as_vec_4d_ref(&self) -> Option<&Vec4d>

Source

pub fn try_as_vec_4d_mut(&mut self) -> Option<&mut Vec4d>

Source

pub fn try_as_vec_4i(self) -> Option<Vec4i>

Source

pub const fn try_as_vec_4i_ref(&self) -> Option<&Vec4i>

Source

pub fn try_as_vec_4i_mut(&mut self) -> Option<&mut Vec4i>

Source

pub fn try_as_vec_4h_vec(self) -> Option<Vec<Vec4h>>

Source

pub const fn try_as_vec_4h_vec_ref(&self) -> Option<&Vec<Vec4h>>

Source

pub fn try_as_vec_4h_vec_mut(&mut self) -> Option<&mut Vec<Vec4h>>

Source

pub fn try_as_vec_4f_vec(self) -> Option<Vec<Vec4f>>

Source

pub const fn try_as_vec_4f_vec_ref(&self) -> Option<&Vec<Vec4f>>

Source

pub fn try_as_vec_4f_vec_mut(&mut self) -> Option<&mut Vec<Vec4f>>

Source

pub fn try_as_vec_4d_vec(self) -> Option<Vec<Vec4d>>

Source

pub const fn try_as_vec_4d_vec_ref(&self) -> Option<&Vec<Vec4d>>

Source

pub fn try_as_vec_4d_vec_mut(&mut self) -> Option<&mut Vec<Vec4d>>

Source

pub fn try_as_vec_4i_vec(self) -> Option<Vec<Vec4i>>

Source

pub const fn try_as_vec_4i_vec_ref(&self) -> Option<&Vec<Vec4i>>

Source

pub fn try_as_vec_4i_vec_mut(&mut self) -> Option<&mut Vec<Vec4i>>

Source

pub fn try_as_matrix_2d(self) -> Option<Mat2d>

Source

pub const fn try_as_matrix_2d_ref(&self) -> Option<&Mat2d>

Source

pub fn try_as_matrix_2d_mut(&mut self) -> Option<&mut Mat2d>

Source

pub fn try_as_matrix_3d(self) -> Option<Mat3d>

Source

pub const fn try_as_matrix_3d_ref(&self) -> Option<&Mat3d>

Source

pub fn try_as_matrix_3d_mut(&mut self) -> Option<&mut Mat3d>

Source

pub fn try_as_matrix_4d(self) -> Option<Matrix4d>

Source

pub const fn try_as_matrix_4d_ref(&self) -> Option<&Matrix4d>

Source

pub fn try_as_matrix_4d_mut(&mut self) -> Option<&mut Matrix4d>

Source

pub fn try_as_matrix_2d_vec(self) -> Option<Vec<Mat2d>>

Source

pub const fn try_as_matrix_2d_vec_ref(&self) -> Option<&Vec<Mat2d>>

Source

pub fn try_as_matrix_2d_vec_mut(&mut self) -> Option<&mut Vec<Mat2d>>

Source

pub fn try_as_matrix_3d_vec(self) -> Option<Vec<Mat3d>>

Source

pub const fn try_as_matrix_3d_vec_ref(&self) -> Option<&Vec<Mat3d>>

Source

pub fn try_as_matrix_3d_vec_mut(&mut self) -> Option<&mut Vec<Mat3d>>

Source

pub fn try_as_matrix_4d_vec(self) -> Option<Vec<Matrix4d>>

Source

pub const fn try_as_matrix_4d_vec_ref(&self) -> Option<&Vec<Matrix4d>>

Source

pub fn try_as_matrix_4d_vec_mut(&mut self) -> Option<&mut Vec<Matrix4d>>

Source

pub fn try_as_specifier(self) -> Option<Specifier>

Source

pub const fn try_as_specifier_ref(&self) -> Option<&Specifier>

Source

pub fn try_as_specifier_mut(&mut self) -> Option<&mut Specifier>

Source

pub fn try_as_permission(self) -> Option<Permission>

Source

pub const fn try_as_permission_ref(&self) -> Option<&Permission>

Source

pub fn try_as_permission_mut(&mut self) -> Option<&mut Permission>

Source

pub fn try_as_variability(self) -> Option<Variability>

Source

pub const fn try_as_variability_ref(&self) -> Option<&Variability>

Source

pub fn try_as_variability_mut(&mut self) -> Option<&mut Variability>

Source

pub fn try_as_dictionary(self) -> Option<HashMap<String, Value>>

Source

pub const fn try_as_dictionary_ref(&self) -> Option<&HashMap<String, Value>>

Source

pub fn try_as_dictionary_mut(&mut self) -> Option<&mut HashMap<String, Value>>

Source

pub fn try_as_token_list_op(self) -> Option<TokenListOp>

Source

pub const fn try_as_token_list_op_ref(&self) -> Option<&TokenListOp>

Source

pub fn try_as_token_list_op_mut(&mut self) -> Option<&mut TokenListOp>

Source

pub fn try_as_string_list_op(self) -> Option<StringListOp>

Source

pub const fn try_as_string_list_op_ref(&self) -> Option<&StringListOp>

Source

pub fn try_as_string_list_op_mut(&mut self) -> Option<&mut StringListOp>

Source

pub fn try_as_path_list_op(self) -> Option<PathListOp>

Source

pub const fn try_as_path_list_op_ref(&self) -> Option<&PathListOp>

Source

pub fn try_as_path_list_op_mut(&mut self) -> Option<&mut PathListOp>

Source

pub fn try_as_reference_list_op(self) -> Option<ReferenceListOp>

Source

pub const fn try_as_reference_list_op_ref(&self) -> Option<&ReferenceListOp>

Source

pub fn try_as_reference_list_op_mut(&mut self) -> Option<&mut ReferenceListOp>

Source

pub fn try_as_int_list_op(self) -> Option<IntListOp>

Source

pub const fn try_as_int_list_op_ref(&self) -> Option<&IntListOp>

Source

pub fn try_as_int_list_op_mut(&mut self) -> Option<&mut IntListOp>

Source

pub fn try_as_int_64_list_op(self) -> Option<Int64ListOp>

Source

pub const fn try_as_int_64_list_op_ref(&self) -> Option<&Int64ListOp>

Source

pub fn try_as_int_64_list_op_mut(&mut self) -> Option<&mut Int64ListOp>

Source

pub fn try_as_u_int_list_op(self) -> Option<UintListOp>

Source

pub const fn try_as_u_int_list_op_ref(&self) -> Option<&UintListOp>

Source

pub fn try_as_u_int_list_op_mut(&mut self) -> Option<&mut UintListOp>

Source

pub fn try_as_u_int_64_list_op(self) -> Option<Uint64ListOp>

Source

pub const fn try_as_u_int_64_list_op_ref(&self) -> Option<&Uint64ListOp>

Source

pub fn try_as_u_int_64_list_op_mut(&mut self) -> Option<&mut Uint64ListOp>

Source

pub fn try_as_payload_list_op(self) -> Option<PayloadListOp>

Source

pub const fn try_as_payload_list_op_ref(&self) -> Option<&PayloadListOp>

Source

pub fn try_as_payload_list_op_mut(&mut self) -> Option<&mut PayloadListOp>

Source

pub fn try_as_payload(self) -> Option<Payload>

Source

pub const fn try_as_payload_ref(&self) -> Option<&Payload>

Source

pub fn try_as_payload_mut(&mut self) -> Option<&mut Payload>

Source

pub fn try_as_path_vec(self) -> Option<Vec<Path>>

Source

pub const fn try_as_path_vec_ref(&self) -> Option<&Vec<Path>>

Source

pub fn try_as_path_vec_mut(&mut self) -> Option<&mut Vec<Path>>

Source

pub fn try_as_relocates(self) -> Option<RelocateList>

Source

pub const fn try_as_relocates_ref(&self) -> Option<&RelocateList>

Source

pub fn try_as_relocates_mut(&mut self) -> Option<&mut RelocateList>

Source

pub fn try_as_variant_selection_map(self) -> Option<HashMap<String, String>>

Source

pub const fn try_as_variant_selection_map_ref( &self, ) -> Option<&HashMap<String, String>>

Source

pub fn try_as_variant_selection_map_mut( &mut self, ) -> Option<&mut HashMap<String, String>>

Source

pub fn try_as_time_samples(self) -> Option<TimeSampleMap>

Source

pub const fn try_as_time_samples_ref(&self) -> Option<&TimeSampleMap>

Source

pub fn try_as_time_samples_mut(&mut self) -> Option<&mut TimeSampleMap>

Source

pub fn try_as_layer_offset_vec(self) -> Option<Vec<LayerOffset>>

Source

pub const fn try_as_layer_offset_vec_ref(&self) -> Option<&Vec<LayerOffset>>

Source

pub fn try_as_layer_offset_vec_mut(&mut self) -> Option<&mut Vec<LayerOffset>>

Source

pub fn try_as_value_vec(self) -> Option<Vec<Value>>

Source

pub const fn try_as_value_vec_ref(&self) -> Option<&Vec<Value>>

Source

pub fn try_as_value_vec_mut(&mut self) -> Option<&mut Vec<Value>>

Source

pub fn try_as_unregistered_value(self) -> Option<String>

Source

pub const fn try_as_unregistered_value_ref(&self) -> Option<&String>

Source

pub fn try_as_unregistered_value_mut(&mut self) -> Option<&mut String>

Source

pub fn try_as_unregistered_value_list_op(self) -> Option<StringListOp>

Source

pub const fn try_as_unregistered_value_list_op_ref( &self, ) -> Option<&StringListOp>

Source

pub fn try_as_unregistered_value_list_op_mut( &mut self, ) -> Option<&mut StringListOp>

Source

pub fn try_as_time_code(self) -> Option<TimeCode>

Source

pub const fn try_as_time_code_ref(&self) -> Option<&TimeCode>

Source

pub fn try_as_time_code_mut(&mut self) -> Option<&mut TimeCode>

Source

pub fn try_as_time_code_vec(self) -> Option<Vec<TimeCode>>

Source

pub const fn try_as_time_code_vec_ref(&self) -> Option<&Vec<TimeCode>>

Source

pub fn try_as_time_code_vec_mut(&mut self) -> Option<&mut Vec<TimeCode>>

Source

pub fn try_as_path_expression(self) -> Option<String>

Source

pub const fn try_as_path_expression_ref(&self) -> Option<&String>

Source

pub fn try_as_path_expression_mut(&mut self) -> Option<&mut String>

Source§

impl Value

Source

pub fn get<T: TryFrom<Value>>(self) -> Option<T>

Extracts the payload as T if this holds the matching variant, else None. A typed view over the try_as_* accessors and the TryFrom<Value> impls — e.g. value.get::<tf::Token>(). T = Value returns the value unchanged.

Source

pub fn has_embedded_paths(&self) -> bool

Whether this value embeds namespace paths that remap_paths rewrites — PathVec, PathListOp (relationship targets, attribute connections, inheritPaths, specializes), Relocates, and ReferenceListOp / PayloadListOp (whose internal entries target this layer’s own namespace). The single source of truth a copy value policy checks before remapping, so the set of path-bearing variants lives only here.

Source

pub fn remap_paths(&self, remap: impl Fn(&Path) -> Path) -> Value

Returns a copy of this value with every embedded namespace path rewritten through remap. Paths live in PathVec, PathListOp (relationship targets, attribute connections, inheritPaths, specializes), Relocates (source/target pairs), and the prim paths of internal (same-layer) ReferenceListOp / PayloadListOp entries. An external reference or payload carries its prim path in the referenced layer’s namespace, and an empty prim path is the defaultPrim selector — both are left untouched; every other value kind is cloned unchanged.

The path-rewriting core behind copy_spec, exposed so callers building a custom copy value policy (flatten, namespace editing, rename) can remap paths with their own mapping rather than the default root-to-root prefix swap.

Source

pub fn filter_map_paths(&self, remap: impl Fn(&Path) -> Option<Path>) -> Value

Returns a copy of this value with every embedded namespace path mapped through remap, dropping any path it maps to None. The dropping form of remap_paths: namespace-edit deletion fixup maps the targets/connections/internal references that point at a removed object to None so the entries vanish, while moves map to Some(new_path).

A PathVec element or list-op item that maps to None is removed. An external reference or payload (whose prim path lives in the referenced layer’s namespace) is never offered to remap and is always kept; a relocate pair is dropped when its source maps to None.

Source§

impl Value

Source

pub fn vec2f(x: f32, y: f32) -> Self

Source

pub fn vec3f(x: f32, y: f32, z: f32) -> Self

Source

pub fn vec4f(x: f32, y: f32, z: f32, w: f32) -> Self

Source

pub fn vec2d(x: f64, y: f64) -> Self

Source

pub fn vec3d(x: f64, y: f64, z: f64) -> Self

Source

pub fn vec4d(x: f64, y: f64, z: f64, w: f64) -> Self

Source

pub fn vec2i(x: i32, y: i32) -> Self

Source

pub fn vec3i(x: i32, y: i32, z: i32) -> Self

Source

pub fn vec4i(x: i32, y: i32, z: i32, w: i32) -> Self

Source

pub fn vec2h(x: f16, y: f16) -> Self

Source

pub fn vec3h(x: f16, y: f16, z: f16) -> Self

Source

pub fn vec4h(x: f16, y: f16, z: f16, w: f16) -> Self

Source

pub fn quatf(w: f32, x: f32, y: f32, z: f32) -> Self

Source

pub fn quatd(w: f64, x: f64, y: f64, z: f64) -> Self

Source

pub fn quath(w: f16, x: f16, y: f16, z: f16) -> Self

Source

pub fn token(name: impl Into<Token>) -> Self

Builds a Value::Token from any string-like value, so callers need not name Token at the construction site (Value::token("Mesh")).

Source

pub fn token_vec(items: impl IntoIterator<Item = impl Into<Token>>) -> Self

Builds a Value::TokenVec from any iterator of string-like items — the counterpart of Value::token for name lists such as primChildren and allowedTokens.

Source

pub fn as_str(&self) -> Option<&str>

Borrows the inner string of a string-like scalar — asset, string, or token — and None for any other variant.

An asset path may be authored as a plain string or token, so reading one coerces across all three (the borrowing counterpart to the owned TryFrom<Value> for String).

Source

pub fn cast<T: FromValueCast>(self) -> Result<T, CastError>

Coerces this value to T through the registered casts, mirroring C++ VtValue::Cast: numeric scalars cross-convert (range-checked), stringtoken, and same-dimension vectors/quaternions change precision.

Unlike T::try_from / Attribute::get, which require the exact held variant, cast is the coercing tier — read the raw value and cast when the authored type may differ from the wanted one: attr.get::<Value>()?.map(|v| v.cast::<f32>()).transpose()?.

Trait Implementations§

Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Value

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'_derivative_strum> From<&'_derivative_strum Value> for &'static str

Source§

fn from(x: &'_derivative_strum Value) -> &'static str

Converts to this type from the input type.
Source§

impl<'a> From<&'a str> for Value

Convert from &str to Value.

Used a lot in text parser since all tokens are basically strings.

Source§

fn from(value: &'a str) -> Self

Converts to this type from the input type.
Source§

impl From<AssetPath> for Value

Source§

fn from(value: AssetPath) -> Self

Converts to this type from the input type.
Source§

impl From<HashMap<String, String>> for Value

Source§

fn from(value: HashMap<String, String>) -> Self

Converts to this type from the input type.
Source§

impl From<HashMap<String, Value>> for Value

Source§

fn from(value: HashMap<String, Value>) -> Self

Converts to this type from the input type.
Source§

impl From<ListOp<Path>> for Value

Source§

fn from(value: PathListOp) -> Self

Converts to this type from the input type.
Source§

impl From<ListOp<Payload>> for Value

Source§

fn from(value: PayloadListOp) -> Self

Converts to this type from the input type.
Source§

impl From<ListOp<Reference>> for Value

Source§

fn from(value: ReferenceListOp) -> Self

Converts to this type from the input type.
Source§

impl From<ListOp<String>> for Value

Source§

fn from(value: StringListOp) -> Self

Converts to this type from the input type.
Source§

impl From<ListOp<Token>> for Value

Source§

fn from(value: TokenListOp) -> Self

Converts to this type from the input type.
Source§

impl From<ListOp<i32>> for Value

Source§

fn from(value: IntListOp) -> Self

Converts to this type from the input type.
Source§

impl From<ListOp<i64>> for Value

Source§

fn from(value: Int64ListOp) -> Self

Converts to this type from the input type.
Source§

impl From<ListOp<u32>> for Value

Source§

fn from(value: UintListOp) -> Self

Converts to this type from the input type.
Source§

impl From<ListOp<u64>> for Value

Source§

fn from(value: Uint64ListOp) -> Self

Converts to this type from the input type.
Source§

impl From<Mat2d> for Value

Source§

fn from(value: Mat2d) -> Self

Converts to this type from the input type.
Source§

impl From<Mat3d> for Value

Source§

fn from(value: Mat3d) -> Self

Converts to this type from the input type.
Source§

impl From<Matrix4d> for Value

Source§

fn from(value: Matrix4d) -> Self

Converts to this type from the input type.
Source§

impl From<Payload> for Value

Source§

fn from(value: Payload) -> Self

Converts to this type from the input type.
Source§

impl From<Permission> for Value

Source§

fn from(value: Permission) -> Self

Converts to this type from the input type.
Source§

impl From<Quatd> for Value

Source§

fn from(value: Quatd) -> Self

Converts to this type from the input type.
Source§

impl From<Quatf> for Value

Source§

fn from(value: Quatf) -> Self

Converts to this type from the input type.
Source§

impl From<Quath> for Value

Source§

fn from(value: Quath) -> Self

Converts to this type from the input type.
Source§

impl From<Specifier> for Value

Source§

fn from(value: Specifier) -> Self

Converts to this type from the input type.
Source§

impl From<String> for Value

Source§

fn from(value: String) -> Self

Converts to this type from the input type.
Source§

impl From<TimeCode> for Value

Source§

fn from(value: TimeCode) -> Self

Converts to this type from the input type.
Source§

impl From<Token> for Value

Source§

fn from(value: Token) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for &'static str

Source§

fn from(x: Value) -> &'static str

Converts to this type from the input type.
Source§

impl From<Variability> for Value

Source§

fn from(value: Variability) -> Self

Converts to this type from the input type.
Source§

impl From<Vec2d> for Value

Source§

fn from(value: Vec2d) -> Self

Converts to this type from the input type.
Source§

impl From<Vec2f> for Value

Source§

fn from(value: Vec2f) -> Self

Converts to this type from the input type.
Source§

impl From<Vec2h> for Value

Source§

fn from(value: Vec2h) -> Self

Converts to this type from the input type.
Source§

impl From<Vec2i> for Value

Source§

fn from(value: Vec2i) -> Self

Converts to this type from the input type.
Source§

impl From<Vec3d> for Value

Source§

fn from(value: Vec3d) -> Self

Converts to this type from the input type.
Source§

impl From<Vec3f> for Value

Source§

fn from(value: Vec3f) -> Self

Converts to this type from the input type.
Source§

impl From<Vec3h> for Value

Source§

fn from(value: Vec3h) -> Self

Converts to this type from the input type.
Source§

impl From<Vec3i> for Value

Source§

fn from(value: Vec3i) -> Self

Converts to this type from the input type.
Source§

impl From<Vec4d> for Value

Source§

fn from(value: Vec4d) -> Self

Converts to this type from the input type.
Source§

impl From<Vec4f> for Value

Source§

fn from(value: Vec4f) -> Self

Converts to this type from the input type.
Source§

impl From<Vec4h> for Value

Source§

fn from(value: Vec4h) -> Self

Converts to this type from the input type.
Source§

impl From<Vec4i> for Value

Source§

fn from(value: Vec4i) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<(Path, Path)>> for Value

Source§

fn from(value: RelocateList) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<(f64, Value)>> for Value

Source§

fn from(value: TimeSampleMap) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<AssetPath>> for Value

Source§

fn from(value: Vec<AssetPath>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<LayerOffset>> for Value

Source§

fn from(value: Vec<LayerOffset>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Mat2d>> for Value

Source§

fn from(value: Vec<Mat2d>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Mat3d>> for Value

Source§

fn from(value: Vec<Mat3d>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Matrix4d>> for Value

Source§

fn from(value: Vec<Matrix4d>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Path>> for Value

Source§

fn from(value: Vec<Path>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Quatd>> for Value

Source§

fn from(value: Vec<Quatd>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Quatf>> for Value

Source§

fn from(value: Vec<Quatf>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Quath>> for Value

Source§

fn from(value: Vec<Quath>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<String>> for Value

Source§

fn from(value: Vec<String>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<TimeCode>> for Value

Source§

fn from(value: Vec<TimeCode>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Token>> for Value

Source§

fn from(value: Vec<Token>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Value>> for Value

Source§

fn from(value: Vec<Value>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec2d>> for Value

Source§

fn from(value: Vec<Vec2d>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec2f>> for Value

Source§

fn from(value: Vec<Vec2f>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec2h>> for Value

Source§

fn from(value: Vec<Vec2h>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec2i>> for Value

Source§

fn from(value: Vec<Vec2i>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec3d>> for Value

Source§

fn from(value: Vec<Vec3d>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec3f>> for Value

Source§

fn from(value: Vec<Vec3f>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec3h>> for Value

Source§

fn from(value: Vec<Vec3h>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec3i>> for Value

Source§

fn from(value: Vec<Vec3i>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec4d>> for Value

Source§

fn from(value: Vec<Vec4d>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec4f>> for Value

Source§

fn from(value: Vec<Vec4f>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec4h>> for Value

Source§

fn from(value: Vec<Vec4h>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<Vec4i>> for Value

Source§

fn from(value: Vec<Vec4i>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<bool>> for Value

Source§

fn from(value: Vec<bool>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<f16>> for Value

Source§

fn from(value: Vec<f16>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<f32>> for Value

Source§

fn from(value: Vec<f32>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<f64>> for Value

Source§

fn from(value: Vec<f64>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<i32>> for Value

Source§

fn from(value: Vec<i32>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<i64>> for Value

Source§

fn from(value: Vec<i64>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<u8>> for Value

Source§

fn from(value: Vec<u8>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<u32>> for Value

Source§

fn from(value: Vec<u32>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<u64>> for Value

Source§

fn from(value: Vec<u64>) -> Self

Converts to this type from the input type.
Source§

impl From<[f32; 2]> for Value

Source§

fn from(v: [f32; 2]) -> Self

Converts to this type from the input type.
Source§

impl From<[f32; 3]> for Value

Source§

fn from(v: [f32; 3]) -> Self

Converts to this type from the input type.
Source§

impl From<[f64; 2]> for Value

Source§

fn from(v: [f64; 2]) -> Self

Converts to this type from the input type.
Source§

impl From<[f64; 3]> for Value

Source§

fn from(v: [f64; 3]) -> Self

Converts to this type from the input type.
Source§

impl From<[f64; 16]> for Value

Source§

fn from(v: [f64; 16]) -> Self

Converts to this type from the input type.
Source§

impl From<[i32; 2]> for Value

Source§

fn from(v: [i32; 2]) -> Self

Converts to this type from the input type.
Source§

impl From<[i32; 3]> for Value

Source§

fn from(v: [i32; 3]) -> Self

Converts to this type from the input type.
Source§

impl From<[i32; 4]> for Value

Source§

fn from(v: [i32; 4]) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for Value

Source§

fn from(value: bool) -> Self

Converts to this type from the input type.
Source§

impl From<f16> for Value

Source§

fn from(value: f16) -> Self

Converts to this type from the input type.
Source§

impl From<f32> for Value

Source§

fn from(value: f32) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(value: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Value

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Value

Source§

fn from(value: i64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Value

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Value

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for Value

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Value

Source§

fn eq(&self, other: &Value) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Value

Source§

impl TryFrom<Value> for bool

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for i32

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for u32

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for i64

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for u64

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for f32

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for f64

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Specifier

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Variability

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for ReferenceListOp

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for PayloadListOp

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for PathListOp

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec2f

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec2d

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec2i

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec2h

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec3f

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec3d

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec3i

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec3h

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec4f

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec4d

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec4i

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec4h

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Quatf

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Quatd

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Quath

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Mat2d

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Mat3d

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Matrix4d

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec2f>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec2d>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec2i>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec2h>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec3f>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec3d>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec3i>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec3h>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec4f>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec4d>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec4i>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Vec4h>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Quatf>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Quatd>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Quath>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Mat2d>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Mat3d>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Matrix4d>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for String

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Token

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<Token>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<String>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for AssetPath

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<AssetPath>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for TokenListOp

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for RelocateList

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for TimeSampleMap

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<LayerOffset>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<f32>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<f64>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for [f32; 2]

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for [f32; 3]

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for [f32; 4]

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for [f64; 2]

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for [f64; 3]

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for [f64; 4]

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<[f32; 2]>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<[f32; 3]>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Vec<[f32; 4]>

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for TimeCode

Source§

type Error = ValueConversionError

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnsafeUnpin for Value

§

impl UnwindSafe for Value

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

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 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.