Struct gfx::pso::buffer::Element
[−]
[src]
pub struct Element<F> { pub format: F, pub offset: u32, pub stride: u8, }
A struct element descriptor.
Fields
format: F
Element format
offset: u32
Offset from the beginning of the container, in bytes
stride: u8
Total container size, in bytes
Trait Implementations
impl<F> PartialEq<Element<F>> for Element<F> where F: PartialEq<F>
fn eq(&self, __arg_0: &Element<F>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Element<F>) -> bool
This method tests for !=
.
impl<F> Hash for Element<F> where F: Hash
impl<F> Eq for Element<F> where F: Eq
impl<F> Debug for Element<F> where F: Debug
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl<F> Copy for Element<F> where F: Copy
impl<F> Clone for Element<F> where F: Clone
fn clone(&self) -> Element<F>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more