pub struct TransferState {
pub gray: Option<TransferTable>,
pub color: Option<[Option<TransferTable>; 4]>,
}Expand description
Transfer function state captured at paint time.
Fields§
§gray: Option<TransferTable>Single-component transfer (from settransfer). None = identity.
color: Option<[Option<TransferTable>; 4]>Per-component color transfer [R, G, B, Gray] (from setcolortransfer).
When set, overrides gray.
Implementations§
Source§impl TransferState
impl TransferState
Sourcepub fn has_functions(&self) -> bool
pub fn has_functions(&self) -> bool
Returns true if any non-identity transfer function is set.
Trait Implementations§
Source§impl Clone for TransferState
impl Clone for TransferState
Source§fn clone(&self) -> TransferState
fn clone(&self) -> TransferState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransferState
impl Debug for TransferState
Source§impl Default for TransferState
impl Default for TransferState
Source§fn default() -> TransferState
fn default() -> TransferState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransferState
impl RefUnwindSafe for TransferState
impl Send for TransferState
impl Sync for TransferState
impl Unpin for TransferState
impl UnsafeUnpin for TransferState
impl UnwindSafe for TransferState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more