pub struct ShaderCollection { /* private fields */ }Implementations§
Source§impl ShaderCollection
impl ShaderCollection
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 ShaderCollection
impl Default for ShaderCollection
Source§fn default() -> ShaderCollection
fn default() -> ShaderCollection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShaderCollection
impl RefUnwindSafe for ShaderCollection
impl Send for ShaderCollection
impl Sync for ShaderCollection
impl Unpin for ShaderCollection
impl UnwindSafe for ShaderCollection
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