Struct shader_version::Shaders [−][src]
pub struct Shaders<'a, V, S: 'a + ?Sized>(_);
Shader picker.
Implementations
impl<'a, V, S: ?Sized> Shaders<'a, V, S> where
V: PickShader,
[src]
V: PickShader,
pub fn new() -> Self
[src]
Creates a new shader picker.
pub fn set(&mut self, version: V, source: &'a S) -> &mut Self
[src]
Sets source for a shader version.
pub fn get(&self, version: V) -> Option<&S>
[src]
Get the closest shader to a shader version.
Auto Trait Implementations
impl<'a, V, S: ?Sized> RefUnwindSafe for Shaders<'a, V, S> where
S: RefUnwindSafe,
V: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, V, S: ?Sized> Send for Shaders<'a, V, S> where
S: Sync,
V: Send,
S: Sync,
V: Send,
impl<'a, V, S: ?Sized> Sync for Shaders<'a, V, S> where
S: Sync,
V: Sync,
S: Sync,
V: Sync,
impl<'a, V, S: ?Sized> Unpin for Shaders<'a, V, S>
impl<'a, V, S: ?Sized> UnwindSafe for Shaders<'a, V, S> where
S: RefUnwindSafe,
V: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,