[−][src]Struct pix::Opaque
Alpha Channel
for fully opaque pixels and
Rasters.
Pixel Formats with Opaque
alpha channels take less
memory than those with translucent ones.
Trait Implementations
impl<C: Channel> Alpha for Opaque<C>
[src]
type Chan = C
Channel
type
fn value(&self) -> C
[src]
Get the alpha Channel
value.
Always returns Channel::MAX (fully opaque).
impl<C: Clone> Clone for Opaque<C>
[src]
impl<C: Copy> Copy for Opaque<C>
[src]
impl<C: Debug> Debug for Opaque<C>
[src]
impl<C: Default> Default for Opaque<C>
[src]
impl<C, H> From<H> for Opaque<C> where
C: Channel + From<H>,
H: Channel,
[src]
C: Channel + From<H>,
H: Channel,
impl<C, A> From<Opaque<A>> for Translucent<C> where
C: Channel,
A: Channel,
[src]
C: Channel,
A: Channel,
impl<C: Channel> From<Opaque<C>> for Ch8
[src]
impl<C: Channel> From<Opaque<C>> for Ch16
[src]
impl<C: Channel> From<Opaque<C>> for Ch32
[src]
impl<C, A> From<Translucent<A>> for Opaque<C> where
C: Channel,
A: Channel,
[src]
C: Channel,
A: Channel,
fn from(_: Translucent<A>) -> Self
[src]
Convert from a Translucent
value.
impl<C: Channel> Mul<Opaque<C>> for Opaque<C>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, _rhs: Self) -> Self
[src]
impl<C: PartialEq> PartialEq<Opaque<C>> for Opaque<C>
[src]
impl<C> StructuralPartialEq for Opaque<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for Opaque<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for Opaque<C> where
C: Send,
C: Send,
impl<C> Sync for Opaque<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Opaque<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for Opaque<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,