pub struct Alpha(/* private fields */);
Expand description
Wrapper around f32 that represents an alpha value between 0.0 and 1.0
Implementations§
Trait Implementations§
Source§impl<'a> Deserialize<'a> for Alpha
impl<'a> Deserialize<'a> for Alpha
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Alpha
impl StructuralPartialEq for Alpha
Auto Trait Implementations§
impl Freeze for Alpha
impl RefUnwindSafe for Alpha
impl Send for Alpha
impl Sync for Alpha
impl Unpin for Alpha
impl UnwindSafe for Alpha
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)