Enum wgpu_biolerless::ModuleSrc
source · [−]pub enum ModuleSrc<'a> {
Source(ShaderSource<'a>),
Ref(&'a ShaderModule),
}Variants
Source(ShaderSource<'a>)
Ref(&'a ShaderModule)
Trait Implementations
sourceimpl<'a> From<&'a ShaderModule> for ModuleSrc<'a>
impl<'a> From<&'a ShaderModule> for ModuleSrc<'a>
sourcefn from(src: &'a ShaderModule) -> Self
fn from(src: &'a ShaderModule) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<ShaderSource<'a>> for ModuleSrc<'a>
impl<'a> From<ShaderSource<'a>> for ModuleSrc<'a>
sourcefn from(src: ShaderSource<'a>) -> Self
fn from(src: ShaderSource<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ModuleSrc<'a>
impl<'a> Send for ModuleSrc<'a>
impl<'a> Sync for ModuleSrc<'a>
impl<'a> Unpin for ModuleSrc<'a>
impl<'a> !UnwindSafe for ModuleSrc<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more