[−][src]Struct msdfgen::RGB
RGB color
Fields
r: T
g: T
b: T
Methods
impl<T> RGB<T>
[src]
Trait Implementations
impl<T: Clone> Clone for RGB<T>
[src]
impl<T: Copy> Copy for RGB<T>
[src]
impl<T: Debug> Debug for RGB<T>
[src]
impl ErrorEstimation for RGB<f32>
[src]
fn estimate_error(
bitmap: &Bitmap<Self>,
shape: &Shape,
framing: &Framing<f64>,
scanlines_per_row: u32,
fill_rule: FillRule
) -> f64
[src]
bitmap: &Bitmap<Self>,
shape: &Shape,
framing: &Framing<f64>,
scanlines_per_row: u32,
fill_rule: FillRule
) -> f64
impl From<RGB<f32>> for RGB<u8>
[src]
impl From<RGB<u8>> for RGB<f32>
[src]
impl<T: PartialEq> PartialEq<RGB<T>> for RGB<T>
[src]
impl Pixel for RGB<f32>
[src]
type Component = f32
fn components(&self) -> &[Self::Component]
[src]
fn components_mut(&mut self) -> &mut [Self::Component]
[src]
fn invert(&mut self)
[src]
impl Pixel for RGB<u8>
[src]
type Component = u8
fn components(&self) -> &[Self::Component]
[src]
fn components_mut(&mut self) -> &mut [Self::Component]
[src]
fn invert(&mut self)
[src]
impl RenderTarget<Gray<f32>> for RGB<f32>
[src]
impl RenderTarget<RGB<f32>> for Gray<f32>
[src]
impl RenderTarget<RGB<f32>> for RGB<f32>
[src]
impl SignCorrection for RGB<f32>
[src]
fn correct_sign(
bitmap: &mut Bitmap<Self>,
shape: &Shape,
framing: &Framing<f64>,
fill_rule: FillRule
)
[src]
bitmap: &mut Bitmap<Self>,
shape: &Shape,
framing: &Framing<f64>,
fill_rule: FillRule
)
impl<T> StructuralPartialEq for RGB<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for RGB<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for RGB<T> where
T: Send,
T: Send,
impl<T> Sync for RGB<T> where
T: Sync,
T: Sync,
impl<T> Unpin for RGB<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for RGB<T> where
T: UnwindSafe,
T: 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>,