pub struct TextureHandle(/* private fields */);Expand description
Handle to a texture asset (lightweight glue combining an image with sampling config).
Implementations§
Source§impl TextureHandle
impl TextureHandle
Sourcepub fn system_reserved(index: u64) -> TextureHandle
pub fn system_reserved(index: u64) -> TextureHandle
Creates a reserved handle for internal system use.
Sourcepub fn dummy_env_map() -> TextureHandle
pub fn dummy_env_map() -> TextureHandle
Returns a sentinel handle used as a placeholder for missing environment maps.
Trait Implementations§
Source§impl Clone for TextureHandle
impl Clone for TextureHandle
Source§fn clone(&self) -> TextureHandle
fn clone(&self) -> TextureHandle
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 TextureHandle
impl Debug for TextureHandle
Source§impl Default for TextureHandle
impl Default for TextureHandle
Source§fn default() -> TextureHandle
fn default() -> TextureHandle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextureHandle
impl<'de> Deserialize<'de> for TextureHandle
Source§fn deserialize<D>(
deserializer: D,
) -> Result<TextureHandle, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<TextureHandle, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<KeyData> for TextureHandle
impl From<KeyData> for TextureHandle
Source§fn from(k: KeyData) -> TextureHandle
fn from(k: KeyData) -> TextureHandle
Converts to this type from the input type.
Source§impl From<TextureHandle> for TextureSlot
impl From<TextureHandle> for TextureSlot
Source§fn from(handle: TextureHandle) -> TextureSlot
fn from(handle: TextureHandle) -> TextureSlot
Converts to this type from the input type.
Source§impl Hash for TextureHandle
impl Hash for TextureHandle
Source§impl Key for TextureHandle
impl Key for TextureHandle
Source§fn null() -> Self
fn null() -> Self
Creates a new key that is always invalid and distinct from any non-null
key. A null key can only be created through this method (or default
initialization of keys made with
new_key_type!, which calls this
method). Read moreSource§impl Ord for TextureHandle
impl Ord for TextureHandle
Source§fn cmp(&self, other: &TextureHandle) -> Ordering
fn cmp(&self, other: &TextureHandle) -> 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 TextureHandle
impl PartialEq for TextureHandle
Source§impl PartialOrd for TextureHandle
impl PartialOrd for TextureHandle
Source§impl Serialize for TextureHandle
impl Serialize for TextureHandle
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TextureHandle
impl Eq for TextureHandle
impl StructuralPartialEq for TextureHandle
Auto Trait Implementations§
impl Freeze for TextureHandle
impl RefUnwindSafe for TextureHandle
impl Send for TextureHandle
impl Sync for TextureHandle
impl Unpin for TextureHandle
impl UnsafeUnpin for TextureHandle
impl UnwindSafe for TextureHandle
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().