pub struct FunctionBased {
pub domain: [f32; 4],
pub matrix: Affine,
}Expand description
A type 1 shading’s geometry.
Fields§
§domain: [f32; 4]The domain rectangle, [xmin, xmax, ymin, ymax] — note the ordering.
matrix: AffineThe shading’s own /Matrix, mapping the domain into the shading’s
space. Distinct from a pattern’s /Matrix.
Implementations§
Trait Implementations§
Source§impl Clone for FunctionBased
impl Clone for FunctionBased
Source§fn clone(&self) -> FunctionBased
fn clone(&self) -> FunctionBased
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 moreimpl Copy for FunctionBased
Source§impl Debug for FunctionBased
impl Debug for FunctionBased
Source§impl PartialEq for FunctionBased
impl PartialEq for FunctionBased
impl StructuralPartialEq for FunctionBased
Auto Trait Implementations§
impl Freeze for FunctionBased
impl RefUnwindSafe for FunctionBased
impl Send for FunctionBased
impl Sync for FunctionBased
impl Unpin for FunctionBased
impl UnsafeUnpin for FunctionBased
impl UnwindSafe for FunctionBased
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