Skip to main content

DiscArgb

Struct DiscArgb 

Source
pub struct DiscArgb<'d, 'e>(pub &'d mut Dst<'e>);
Expand description

the standard emitter (i32 sums): W16 = rint(f32(sum) * f32(1 / area)), then straight ARGB [fxc_disc_emit_argb]

Tuple Fields§

§0: &'d mut Dst<'e>

Trait Implementations§

Source§

impl DiscIo for DiscArgb<'_, '_>

Source§

fn emit(&mut self, d: &Disc<'_>, y: i32, row: DiscRow<'_>)

Source§

fn prep(&mut self, _d: &Disc<'_>, _v: &mut [i32], _y: i32, _x0: i32, _x1: i32)

custom preparation (Disc::custom_prep): i32 x 4 values of (x0 .. x1-1, y)

Auto Trait Implementations§

§

impl<'d, 'e> !UnwindSafe for DiscArgb<'d, 'e>

§

impl<'d, 'e> Forget for DiscArgb<'d, 'e>

§

impl<'d, 'e> Freeze for DiscArgb<'d, 'e>

§

impl<'d, 'e> RefUnwindSafe for DiscArgb<'d, 'e>

§

impl<'d, 'e> Send for DiscArgb<'d, 'e>

§

impl<'d, 'e> Sync for DiscArgb<'d, 'e>

§

impl<'d, 'e> Unpin for DiscArgb<'d, 'e>

§

impl<'d, 'e> UnsafeUnpin for DiscArgb<'d, 'e>

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.