#[repr(u32)]pub enum ExampleAssets {
_Unknown(u32),
}Variants§
Implementations§
Source§impl ExampleAssets
impl ExampleAssets
pub const ALL: &'static [Self]
pub const fn const_bytes(self) -> &'static [u8] ⓘ
pub const fn const_str(self) -> &'static str
pub const fn try_const_str(self) -> Result<&'static str, Utf8Error>
pub const fn const_path(self) -> &'static str
pub const fn const_name(self) -> &'static str
pub fn all_variants() -> impl Iterator<Item = Self>
pub fn all_paths() -> impl Iterator<Item = Cow<'static, Path>>
Trait Implementations§
Source§impl Asset for ExampleAssets
impl Asset for ExampleAssets
type Value = Cow<'static, [u8]>
fn load(bytes: Cow<'static, [u8]>) -> Result<Self::Value>
fn try_value(&self) -> Result<Self::Value>
fn try_value_modified( &self, previous_modified: Option<SystemTime>, ) -> Result<Option<(Self::Value, SystemTime)>>
fn try_load_value(&self) -> Result<Self::Value>
fn value(&self) -> Self::Value
fn value_modified( &self, previous_modified: Option<SystemTime>, ) -> Option<(Self::Value, SystemTime)>
fn load_value(&self) -> Self::Value
fn value_fallback(&self) -> Self::Value
fn try_value_fallback(&self) -> Result<Self::Value>
Source§impl BytesAsset for ExampleAssets
impl BytesAsset for ExampleAssets
fn try_bytes(&self) -> Result<Cow<'static, [u8]>>
fn try_bytes_modified( &self, previous_modified: Option<SystemTime>, ) -> Result<Option<(Vec<u8>, SystemTime)>>
fn try_load_bytes(&self) -> Result<Vec<u8>>
fn bytes(&self) -> Cow<'static, [u8]>
fn bytes_modified( &self, previous_modified: Option<SystemTime>, ) -> Option<(Vec<u8>, SystemTime)>
fn load_bytes(&self) -> Vec<u8> ⓘ
fn bytes_fallback(&self) -> Cow<'static, [u8]>
fn try_bytes_fallback(&self) -> Result<Cow<'static, [u8]>>
Source§impl CachedAsset for ExampleAssets
impl CachedAsset for ExampleAssets
Source§impl Clone for ExampleAssets
impl Clone for ExampleAssets
Source§fn clone(&self) -> ExampleAssets
fn clone(&self) -> ExampleAssets
Returns a duplicate 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 ExampleAssets
impl Debug for ExampleAssets
Source§impl<'de> Deserialize<'de> for ExampleAssets
impl<'de> Deserialize<'de> for ExampleAssets
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FileAsset for ExampleAssets
impl FileAsset for ExampleAssets
const PARENT: &'static str = "example_assets"
fn from_const_path<P: AsRef<Path>>(path: P) -> Option<Self>
fn from_const_name(name: &str) -> Option<Self>
fn from_path_unchecked<P: AsRef<Path>>(path: P) -> Self
fn try_path(self) -> Result<Cow<'static, Path>>
fn from_path<P: AsRef<Path>>(path: P) -> Self
fn try_from_path<P: AsRef<Path>>(path: P) -> Result<Self>
fn path(self) -> Cow<'static, Path>
Source§impl Hash for ExampleAssets
impl Hash for ExampleAssets
Source§impl Ord for ExampleAssets
impl Ord for ExampleAssets
Source§fn cmp(&self, other: &ExampleAssets) -> Ordering
fn cmp(&self, other: &ExampleAssets) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExampleAssets
impl PartialEq for ExampleAssets
Source§impl PartialOrd for ExampleAssets
impl PartialOrd for ExampleAssets
Source§impl Serialize for ExampleAssets
impl Serialize for ExampleAssets
Source§impl StrAsset for ExampleAssets
impl StrAsset for ExampleAssets
fn try_string(&self) -> Result<Cow<'static, str>>
fn try_string_modified( &self, previous_modified: Option<SystemTime>, ) -> Result<Option<(String, SystemTime)>>
fn try_load_string(&self) -> Result<String>
fn string(&self) -> Cow<'static, str>
fn string_modified( &self, previous_modified: Option<SystemTime>, ) -> Option<(String, SystemTime)>
fn load_string(&self) -> String
fn string_fallback(&self) -> Cow<'static, str>
fn try_string_fallback(&self) -> Result<Cow<'static, str>>
impl Copy for ExampleAssets
impl Eq for ExampleAssets
impl StructuralPartialEq for ExampleAssets
Auto Trait Implementations§
impl Freeze for ExampleAssets
impl RefUnwindSafe for ExampleAssets
impl Send for ExampleAssets
impl Sync for ExampleAssets
impl Unpin for ExampleAssets
impl UnwindSafe for ExampleAssets
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more