BrushExtensions
struct · ferroui-base · v0.5.0
struct BrushExtensions
Extension methods for brush classes.
Members
to_immutable
fn to_immutable(brush: &Rc<dyn IBrush>) -> Rc<dyn IImmutableBrush>
Converts a brush to an immutable brush.
Returns the result of calling IMutableBrush::to_immutable
if the brush is mutable, otherwise the brush itself.
dash_style_to_immutable
fn dash_style_to_immutable(style: &Rc<dyn IDashStyle>) -> Rc<ImmutableDashStyle>
Converts a dash style to an immutable dash style.
pen_to_immutable
fn pen_to_immutable(pen: &Rc<dyn IPen>) -> Rc<ImmutablePen>
Converts a pen to an immutable pen.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.