Enum ark_api::world::RetrieveDataType
source · #[non_exhaustive]
pub enum RetrieveDataType {
Output,
Info,
WorldDataType,
}Expand description
Type describing what data to retrieve with world__retrieve_data
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.
Output
Can be used to currently retrieve strings and binary data (entity names and reflection).
Info
Returns data type specific information (for instance AudioClipInfo for CreateDataType::AudioClipOgg and CreateDataType::AudioClipWav)
WorldDataType
Trait Implementations§
source§impl CheckedBitPattern for RetrieveDataType
impl CheckedBitPattern for RetrieveDataType
§type Bits = u32
type Bits = u32
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: &<RetrieveDataType as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern( bits: &<RetrieveDataType as CheckedBitPattern>::Bits ) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl Clone for RetrieveDataType
impl Clone for RetrieveDataType
source§fn clone(&self) -> RetrieveDataType
fn clone(&self) -> RetrieveDataType
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 RetrieveDataType
impl Debug for RetrieveDataType
source§impl Hash for RetrieveDataType
impl Hash for RetrieveDataType
source§impl PartialEq<RetrieveDataType> for RetrieveDataType
impl PartialEq<RetrieveDataType> for RetrieveDataType
source§fn eq(&self, other: &RetrieveDataType) -> bool
fn eq(&self, other: &RetrieveDataType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u32> for RetrieveDataType
impl TryFrom<u32> for RetrieveDataType
§type Error = TryFromPrimitiveError<RetrieveDataType>
type Error = TryFromPrimitiveError<RetrieveDataType>
The type returned in the event of a conversion error.
source§fn try_from(
number: u32
) -> Result<RetrieveDataType, TryFromPrimitiveError<RetrieveDataType>>
fn try_from( number: u32 ) -> Result<RetrieveDataType, TryFromPrimitiveError<RetrieveDataType>>
Performs the conversion.