pub struct TextureCollection { /* private fields */ }
Implementations§
Source§impl TextureCollection
impl TextureCollection
pub fn add( &mut self, shader_type: ShaderType, internal_handle: i64, descrip: String, ) -> Result<u64, &'static str>
pub fn put( &mut self, id: u64, shader_type: ShaderType, internal_handle: i64, descrip: String, ) -> Result<(), &'static str>
pub fn clear(&mut self) -> Result<(), &'static str>
pub fn remove(&mut self, id: u64) -> Result<(), &'static str>
pub fn get(&mut self, id: u64) -> Option<i64>
Trait Implementations§
Source§impl Default for TextureCollection
impl Default for TextureCollection
Source§fn default() -> TextureCollection
fn default() -> TextureCollection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TextureCollection
impl RefUnwindSafe for TextureCollection
impl Send for TextureCollection
impl Sync for TextureCollection
impl Unpin for TextureCollection
impl UnwindSafe for TextureCollection
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> 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