pub struct PatternValue {
pub name: Name,
pub components: SmallVec<[f32; 4]>,
pub loaded: Option<Arc<Pattern>>,
}Expand description
A pattern colour: which pattern, and the components an uncoloured one paints with.
Fields§
§name: NameThe pattern’s name in the /Pattern resource dictionary.
components: SmallVec<[f32; 4]>The colour operands, capped at sixteen. Meaningless for a coloured
(/PaintType 1) pattern, which supplies its own.
loaded: Option<Arc<Pattern>>The pattern the name resolved to, when it resolved to one.
Loading it here rather than at paint time is what lets the renderer
stay free of the resolver: a tiling cell’s page objects and a shading
pattern’s ramp are both already in hand by the time an object carrying
this colour reaches the walk. None only where scn named a pattern
the resources do not define, which is a no-op operator.
Trait Implementations§
Source§impl Clone for PatternValue
impl Clone for PatternValue
Source§fn clone(&self) -> PatternValue
fn clone(&self) -> PatternValue
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 moreSource§impl Debug for PatternValue
impl Debug for PatternValue
Source§impl PartialEq for PatternValue
impl PartialEq for PatternValue
impl StructuralPartialEq for PatternValue
Auto Trait Implementations§
impl !RefUnwindSafe for PatternValue
impl !UnwindSafe for PatternValue
impl Freeze for PatternValue
impl Send for PatternValue
impl Sync for PatternValue
impl Unpin for PatternValue
impl UnsafeUnpin for PatternValue
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