Skip to main content

ArrayStorage

Struct ArrayStorage 

Source
pub struct ArrayStorage<const MAX_BAND: usize = 512, const MAX_CELLS: usize = 1024> { /* private fields */ }

Implementations§

Source§

impl<const MAX_BAND: usize, const MAX_CELLS: usize> ArrayStorage<MAX_BAND, MAX_CELLS>

Source

pub fn new(min: FixedPoint, max: FixedPoint) -> Self

Trait Implementations§

Source§

impl<const MAX_BAND: usize, const MAX_CELLS: usize> Rastive for ArrayStorage<MAX_BAND, MAX_CELLS>

Source§

fn reset(&mut self, min: FixedPoint, max: FixedPoint)

Resets the rasterizer with new bounds.
Source§

fn bounds(&self) -> (FixedPoint, FixedPoint)

Gets the current bounds of the rasterizer.
Source§

fn store(&mut self, x: i32, y: i32, area: i32, cover: i32)

Stores a cell with coverage information.
Source§

fn cells(&self) -> &[Cell]

Gets the list of cells.
Source§

fn lines(&self) -> &[i32]

Gets the line indices.
Source§

fn non_zero(&self, mask: &mut dyn Maskive)

Rasterizes using non-zero fill rule.
Source§

fn even_odd(&self, mask: &mut dyn Maskive)

Rasterizes using even-odd fill rule.
Source§

fn rasterize(&self, rule: FillRule, mask: &mut dyn Maskive)

Rasterizes the path with the specified fill rule.

Auto Trait Implementations§

§

impl<const MAX_BAND: usize, const MAX_CELLS: usize> Freeze for ArrayStorage<MAX_BAND, MAX_CELLS>

§

impl<const MAX_BAND: usize, const MAX_CELLS: usize> RefUnwindSafe for ArrayStorage<MAX_BAND, MAX_CELLS>

§

impl<const MAX_BAND: usize, const MAX_CELLS: usize> Send for ArrayStorage<MAX_BAND, MAX_CELLS>

§

impl<const MAX_BAND: usize, const MAX_CELLS: usize> Sync for ArrayStorage<MAX_BAND, MAX_CELLS>

§

impl<const MAX_BAND: usize, const MAX_CELLS: usize> Unpin for ArrayStorage<MAX_BAND, MAX_CELLS>

§

impl<const MAX_BAND: usize, const MAX_CELLS: usize> UnsafeUnpin for ArrayStorage<MAX_BAND, MAX_CELLS>

§

impl<const MAX_BAND: usize, const MAX_CELLS: usize> UnwindSafe for ArrayStorage<MAX_BAND, MAX_CELLS>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.