embedded_graphics::primitives

Trait OffsetOutline

Source
pub trait OffsetOutline {
    // Required method
    fn offset(&self, offset: i32) -> Self;
}
Expand description

Offset outline trait.

Required Methods§

Source

fn offset(&self, offset: i32) -> Self

Offsets the outline of the shape.

The offset is applied perpendicular to each element of the outline. Offset values greater than zero will expand the shape and values less than zero will shrink the shape.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§