Enum ark_api::world::CreateDataType
source · #[non_exhaustive]
pub enum CreateDataType {
Show 27 variants
String,
Binary,
ComponentsMetaData,
WorldEntityQuery,
CompoundPhysicsShape,
SdfProgram,
SdfSkin,
AudioClipOgg,
AudioClipWav,
MorphTargetData,
MeshRaw,
MeshGltf,
PlayerIdSet,
MeshRawWithMaterial,
WorldMaterial,
SdfSkin2,
WorldMaterials,
MeshGltfNamed,
MeshSimplified,
MeshRawWithName,
MeshRawWithMaterialAndName,
FormattedText,
RenderModule,
MeshGltfResource,
AudioClipOggResource,
AudioClipWavResource,
AudioModule,
}Expand description
Type used to describe a data object created using either world__create_data or by the host.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String
Binary
ComponentsMetaData
WorldEntityQuery
CompoundPhysicsShape
SdfProgram
SdfSkin
👎Deprecated: Use
SdfSkin2AudioClipOgg
AudioClipWav
MorphTargetData
MeshRaw
👎Deprecated: Use
MeshRawWithNameMeshGltf
PlayerIdSet
MeshRawWithMaterial
👎Deprecated: Use
MeshRawWithMaterialAndNameWorldMaterial
SdfSkin2
WorldMaterials
MeshGltfNamed
MeshSimplified
Simplifies an existing mesh
MeshRawWithName
MeshRawWithMaterialAndName
FormattedText
RenderModule
Data for client-side render modules.
MeshGltfResource
AudioClipOggResource
AudioClipWavResource
AudioModule
Implementations§
Trait Implementations§
source§impl CheckedBitPattern for CreateDataType
impl CheckedBitPattern for CreateDataType
§type Bits = u64
type Bits = u64
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(
bits: &<CreateDataType as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern( bits: &<CreateDataType as CheckedBitPattern>::Bits ) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl Clone for CreateDataType
impl Clone for CreateDataType
source§fn clone(&self) -> CreateDataType
fn clone(&self) -> CreateDataType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CreateDataType
impl Debug for CreateDataType
source§impl Hash for CreateDataType
impl Hash for CreateDataType
source§impl PartialEq<CreateDataType> for CreateDataType
impl PartialEq<CreateDataType> for CreateDataType
source§fn eq(&self, other: &CreateDataType) -> bool
fn eq(&self, other: &CreateDataType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u64> for CreateDataType
impl TryFrom<u64> for CreateDataType
§type Error = TryFromPrimitiveError<CreateDataType>
type Error = TryFromPrimitiveError<CreateDataType>
The type returned in the event of a conversion error.
source§fn try_from(
number: u64
) -> Result<CreateDataType, TryFromPrimitiveError<CreateDataType>>
fn try_from( number: u64 ) -> Result<CreateDataType, TryFromPrimitiveError<CreateDataType>>
Performs the conversion.
source§impl TryFromPrimitive for CreateDataType
impl TryFromPrimitive for CreateDataType
type Primitive = u64
const NAME: &'static str = "CreateDataType"
fn try_from_primitive( number: <CreateDataType as TryFromPrimitive>::Primitive ) -> Result<CreateDataType, TryFromPrimitiveError<CreateDataType>>
impl Copy for CreateDataType
impl Eq for CreateDataType
impl NoUninit for CreateDataType
impl StructuralEq for CreateDataType
impl StructuralPartialEq for CreateDataType
Auto Trait Implementations§
impl RefUnwindSafe for CreateDataType
impl Send for CreateDataType
impl Sync for CreateDataType
impl Unpin for CreateDataType
impl UnwindSafe for CreateDataType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more