Enum ark_api::world::CreateDataType
source · [−]#[repr(u64)]
#[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
String
Binary
ComponentsMetaData
WorldEntityQuery
CompoundPhysicsShape
SdfProgram
SdfSkin
Use SdfSkin2
AudioClipOgg
AudioClipWav
MorphTargetData
MeshRaw
Use MeshRawWithName
MeshGltf
PlayerIdSet
MeshRawWithMaterial
Use MeshRawWithMaterialAndName
WorldMaterial
SdfSkin2
WorldMaterials
MeshGltfNamed
MeshSimplified
Simplifies an existing mesh
MeshRawWithName
MeshRawWithMaterialAndName
FormattedText
RenderModule
Data for client-side render modules.
MeshGltfResource
AudioClipOggResource
AudioClipWavResource
AudioModule
Implementations
sourceimpl CreateDataType
impl CreateDataType
Trait Implementations
sourceimpl 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
. Read more
sourcefn 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
. Read more
sourceimpl Clone for CreateDataType
impl Clone for CreateDataType
sourcefn clone(&self) -> CreateDataType
fn clone(&self) -> CreateDataType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateDataType
impl Debug for CreateDataType
sourceimpl Hash for CreateDataType
impl Hash for CreateDataType
sourceimpl PartialEq<CreateDataType> for CreateDataType
impl PartialEq<CreateDataType> for CreateDataType
sourcefn 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 ==
. Read more
sourceimpl 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.
sourcefn try_from(
number: u64
) -> Result<CreateDataType, TryFromPrimitiveError<CreateDataType>>
fn try_from(
number: u64
) -> Result<CreateDataType, TryFromPrimitiveError<CreateDataType>>
Performs the conversion.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more