Struct swash::scale::outline::LayerMut[][src]

pub struct LayerMut<'a> { /* fields omitted */ }

Mutable reference to a layer in a scaled outline.

Implementations

impl<'a> LayerMut<'a>[src]

pub fn points(&'a self) -> &'a [Point]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the sequence of points for the layer.

pub fn points_mut(&'a mut self) -> &'a mut [Point]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns a mutable reference the sequence of points for the layer.

pub fn verbs(&self) -> &'a [Verb]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the sequence of verbs for the layer.

pub fn path(&'a self) -> impl PathData + 'a[src]

Returns path data for the layer.

pub fn bounds(&self) -> Bounds[src]

Computes the bounding box of the layer.

pub fn color_index(&self) -> Option<u16>[src]

Returns the color index for the layer.

pub fn transform(&'a mut self, transform: &Transform)[src]

Transforms this layer by the specified matrix.

pub fn embolden(&mut self, x_strength: f32, y_strength: f32)[src]

Applies a faux bold to this layer with the specified strengths in the x and y directions.

Auto Trait Implementations

impl<'a> RefUnwindSafe for LayerMut<'a>

impl<'a> Send for LayerMut<'a>

impl<'a> Sync for LayerMut<'a>

impl<'a> Unpin for LayerMut<'a>

impl<'a> !UnwindSafe for LayerMut<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.