Enum gfx_hal::command::ClearValue
source · pub enum ClearValue {
Color(ClearColor),
DepthStencil(ClearDepthStencil),
}
Expand description
General clear values for attachments (color or depth-stencil).
Variants
Color(ClearColor)
DepthStencil(ClearDepthStencil)
Trait Implementations
sourceimpl Clone for ClearValue
impl Clone for ClearValue
sourcefn clone(&self) -> ClearValue
fn clone(&self) -> ClearValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ClearValue
impl Debug for ClearValue
sourceimpl From<ClearValue> for ClearValueRaw
impl From<ClearValue> for ClearValueRaw
sourcefn from(value: ClearValue) -> Self
fn from(value: ClearValue) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ClearValue> for ClearValue
impl PartialEq<ClearValue> for ClearValue
sourcefn eq(&self, other: &ClearValue) -> bool
fn eq(&self, other: &ClearValue) -> bool
sourceimpl PartialOrd<ClearValue> for ClearValue
impl PartialOrd<ClearValue> for ClearValue
sourcefn partial_cmp(&self, other: &ClearValue) -> Option<Ordering>
fn partial_cmp(&self, other: &ClearValue) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ClearValue
impl StructuralPartialEq for ClearValue
Auto Trait Implementations
impl RefUnwindSafe for ClearValue
impl Send for ClearValue
impl Sync for ClearValue
impl Unpin for ClearValue
impl UnwindSafe for ClearValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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