pub struct TargetBuffers {
pub depth_stencil: Option<String>,
pub colors: Vec<TargetBuffer>,
}Fields§
§depth_stencil: Option<String>§colors: Vec<TargetBuffer>Implementations§
source§impl TargetBuffers
impl TargetBuffers
pub fn with_depth_stencil(self, id: String) -> Result<Self, RenderTargetError>
pub fn with_color(self, buffer: TargetBuffer) -> Result<Self, RenderTargetError>
Trait Implementations§
source§impl Clone for TargetBuffers
impl Clone for TargetBuffers
source§fn clone(&self) -> TargetBuffers
fn clone(&self) -> TargetBuffers
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TargetBuffers
impl Debug for TargetBuffers
source§impl Default for TargetBuffers
impl Default for TargetBuffers
source§fn default() -> TargetBuffers
fn default() -> TargetBuffers
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TargetBuffers
impl<'de> Deserialize<'de> for TargetBuffers
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for TargetBuffers
impl Hash for TargetBuffers
source§impl PartialEq<TargetBuffers> for TargetBuffers
impl PartialEq<TargetBuffers> for TargetBuffers
source§fn eq(&self, other: &TargetBuffers) -> bool
fn eq(&self, other: &TargetBuffers) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TargetBuffers
impl Serialize for TargetBuffers
impl Eq for TargetBuffers
impl StructuralEq for TargetBuffers
impl StructuralPartialEq for TargetBuffers
Auto Trait Implementations§
impl RefUnwindSafe for TargetBuffers
impl Send for TargetBuffers
impl Sync for TargetBuffers
impl Unpin for TargetBuffers
impl UnwindSafe for TargetBuffers
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more