Skip to main content

Disc

Struct Disc 

Source
pub struct Disc<'a> {
    pub src: &'a Surface,
    pub job: Option<&'a (dyn Cancel + Sync)>,
    pub r: i32,
    pub flags: u32,
    pub x0: i32,
    pub y0: i32,
    pub x1: i32,
    pub y1: i32,
    pub mode: u32,
    pub area: i32,
    pub custom_prep: bool,
}
Expand description

a disc run (DSC)

Fields§

§src: &'a Surface§job: Option<&'a (dyn Cancel + Sync)>§r: i32§flags: u32§x0: i32§y0: i32§x1: i32§y1: i32§mode: u32§area: i32

pixels in the disc (set by disc_run)

§custom_prep: bool

io.prep replaces the default row preparation

Implementations§

Source§

impl<'a> Disc<'a>

Source

pub fn new(a: &FxArgs<'a>, r: i32) -> Option<Disc<'a>>

the standard run of an effect (None when the ROI is empty) [fxc_disc_init]

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for Disc<'a>

§

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

§

impl<'a> Forget for Disc<'a>

§

impl<'a> Freeze for Disc<'a>

§

impl<'a> Send for Disc<'a>

§

impl<'a> Sync for Disc<'a>

§

impl<'a> Unpin for Disc<'a>

§

impl<'a> UnsafeUnpin for Disc<'a>

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.