Enum floem_peniko::StyleRef
source · pub enum StyleRef<'a> {
Fill(Fill),
Stroke(&'a Stroke),
}
Expand description
Reference to a draw style.
This is useful for methods that would like to accept draw styles by reference. Defining
the type as impl<Into<DrawRef>>
allows accepting types like &Stroke
or Fill
directly without cloning or allocating.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for StyleRef<'a>
impl<'a> Send for StyleRef<'a>
impl<'a> Sync for StyleRef<'a>
impl<'a> Unpin for StyleRef<'a>
impl<'a> UnwindSafe for StyleRef<'a>
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