pub struct TargetBuffer {
pub id: String,
pub value_type: TargetValueType,
pub mipmap: ImageMipmap,
}Fields§
§id: String§value_type: TargetValueType§mipmap: ImageMipmapImplementations§
source§impl TargetBuffer
impl TargetBuffer
pub fn color(id: impl ToString) -> Self
pub fn float_color(id: impl ToString) -> Self
pub fn mipmap(self, mipmap: ImageMipmap) -> Self
Trait Implementations§
source§impl Clone for TargetBuffer
impl Clone for TargetBuffer
source§fn clone(&self) -> TargetBuffer
fn clone(&self) -> TargetBuffer
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 TargetBuffer
impl Debug for TargetBuffer
source§impl Default for TargetBuffer
impl Default for TargetBuffer
source§fn default() -> TargetBuffer
fn default() -> TargetBuffer
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TargetBuffer
impl<'de> Deserialize<'de> for TargetBuffer
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 TargetBuffer
impl Hash for TargetBuffer
source§impl PartialEq<TargetBuffer> for TargetBuffer
impl PartialEq<TargetBuffer> for TargetBuffer
source§fn eq(&self, other: &TargetBuffer) -> bool
fn eq(&self, other: &TargetBuffer) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TargetBuffer
impl Serialize for TargetBuffer
impl Eq for TargetBuffer
impl StructuralEq for TargetBuffer
impl StructuralPartialEq for TargetBuffer
Auto Trait Implementations§
impl RefUnwindSafe for TargetBuffer
impl Send for TargetBuffer
impl Sync for TargetBuffer
impl Unpin for TargetBuffer
impl UnwindSafe for TargetBuffer
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