pub struct ShaderSource {
pub name: &'static str,
pub vertex: &'static str,
pub fragment: &'static str,
pub uniforms: &'static [ShaderUniform],
}Fields§
§name: &'static str§vertex: &'static str§fragment: &'static str§uniforms: &'static [ShaderUniform]Trait Implementations§
Source§impl Clone for ShaderSource
impl Clone for ShaderSource
Source§fn clone(&self) -> ShaderSource
fn clone(&self) -> ShaderSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShaderSource
Source§impl Debug for ShaderSource
impl Debug for ShaderSource
impl Eq for ShaderSource
Source§impl PartialEq for ShaderSource
impl PartialEq for ShaderSource
Source§fn eq(&self, other: &ShaderSource) -> bool
fn eq(&self, other: &ShaderSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShaderSource
Auto Trait Implementations§
impl Freeze for ShaderSource
impl RefUnwindSafe for ShaderSource
impl Send for ShaderSource
impl Sync for ShaderSource
impl Unpin for ShaderSource
impl UnsafeUnpin for ShaderSource
impl UnwindSafe for ShaderSource
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