pub struct ShadingPatch {
pub points: Vec<(f64, f64)>,
pub colors: [DeviceColor; 4],
pub raw_colors: [Vec<f64>; 4],
}Expand description
A patch in a Coons or tensor-product patch mesh.
Fields§
§points: Vec<(f64, f64)>§colors: [DeviceColor; 4]§raw_colors: [Vec<f64>; 4]Trait Implementations§
Source§impl Clone for ShadingPatch
impl Clone for ShadingPatch
Source§fn clone(&self) -> ShadingPatch
fn clone(&self) -> ShadingPatch
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 moreAuto Trait Implementations§
impl Freeze for ShadingPatch
impl RefUnwindSafe for ShadingPatch
impl Send for ShadingPatch
impl Sync for ShadingPatch
impl Unpin for ShadingPatch
impl UnsafeUnpin for ShadingPatch
impl UnwindSafe for ShadingPatch
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