embedded_graphics::pixelcolor

Struct Rgb888

Source
pub struct Rgb888(/* private fields */);
Expand description

Rgb888 color.

Use the methods provided by the RgbColor trait to access individual color channels and predefined color constants.

See the module-level documentation for more information about conversion between this type and raw data.

Implementations§

Source§

impl Rgb888

Source

pub const fn new(r: u8, g: u8, b: u8) -> Rgb888

Creates a new Rgb888 color. Too large channel values will be limited by setting the unused most significant bits to zero.

Trait Implementations§

Source§

impl Clone for Rgb888

Source§

fn clone(&self) -> Rgb888

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ColorMapping for Rgb888

Source§

fn char_to_color(c: char) -> Self

Converts a char into a color of type C.
Source§

fn color_to_char(color: Self) -> char

Converts a color of type C into a char.
Source§

const NONE_COLOR: Rgb888 = _

Color used to display None values when EG_FANCY_PANIC is enabled. Read more
Source§

impl Debug for Rgb888

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for Rgb888

Source§

fn default() -> Rgb888

Returns the “default value” for a type. Read more
Source§

impl Format for Rgb888

Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl From<Bgr555> for Rgb888

Source§

fn from(other: Bgr555) -> Rgb888

Converts to this type from the input type.
Source§

impl From<Bgr565> for Rgb888

Source§

fn from(other: Bgr565) -> Rgb888

Converts to this type from the input type.
Source§

impl From<Bgr666> for Rgb888

Source§

fn from(other: Bgr666) -> Rgb888

Converts to this type from the input type.
Source§

impl From<Bgr888> for Rgb888

Source§

fn from(other: Bgr888) -> Rgb888

Converts to this type from the input type.
Source§

impl From<BinaryColor> for Rgb888

Source§

fn from(color: BinaryColor) -> Rgb888

Converts to this type from the input type.
Source§

impl From<Gray2> for Rgb888

Source§

fn from(other: Gray2) -> Rgb888

Converts to this type from the input type.
Source§

impl From<Gray4> for Rgb888

Source§

fn from(other: Gray4) -> Rgb888

Converts to this type from the input type.
Source§

impl From<Gray8> for Rgb888

Source§

fn from(other: Gray8) -> Rgb888

Converts to this type from the input type.
Source§

impl From<RawU24> for Rgb888

Source§

fn from(data: RawU24) -> Rgb888

Converts to this type from the input type.
Source§

impl From<Rgb555> for Rgb888

Source§

fn from(other: Rgb555) -> Rgb888

Converts to this type from the input type.
Source§

impl From<Rgb565> for Rgb888

Source§

fn from(other: Rgb565) -> Rgb888

Converts to this type from the input type.
Source§

impl From<Rgb666> for Rgb888

Source§

fn from(other: Rgb666) -> Rgb888

Converts to this type from the input type.
Source§

impl From<Rgb888> for Bgr555

Source§

fn from(other: Rgb888) -> Bgr555

Converts to this type from the input type.
Source§

impl From<Rgb888> for Bgr565

Source§

fn from(other: Rgb888) -> Bgr565

Converts to this type from the input type.
Source§

impl From<Rgb888> for Bgr666

Source§

fn from(other: Rgb888) -> Bgr666

Converts to this type from the input type.
Source§

impl From<Rgb888> for Bgr888

Source§

fn from(other: Rgb888) -> Bgr888

Converts to this type from the input type.
Source§

impl From<Rgb888> for BinaryColor

Source§

fn from(color: Rgb888) -> BinaryColor

Converts to this type from the input type.
Source§

impl From<Rgb888> for Gray2

Source§

fn from(other: Rgb888) -> Gray2

Converts to this type from the input type.
Source§

impl From<Rgb888> for Gray4

Source§

fn from(other: Rgb888) -> Gray4

Converts to this type from the input type.
Source§

impl From<Rgb888> for Gray8

Source§

fn from(other: Rgb888) -> Gray8

Converts to this type from the input type.
Source§

impl From<Rgb888> for RawU24

Source§

fn from(color: Rgb888) -> RawU24

Converts to this type from the input type.
Source§

impl From<Rgb888> for Rgb555

Source§

fn from(other: Rgb888) -> Rgb555

Converts to this type from the input type.
Source§

impl From<Rgb888> for Rgb565

Source§

fn from(other: Rgb888) -> Rgb565

Converts to this type from the input type.
Source§

impl From<Rgb888> for Rgb666

Source§

fn from(other: Rgb888) -> Rgb666

Converts to this type from the input type.
Source§

impl Hash for Rgb888

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Rgb888

Source§

fn cmp(&self, other: &Rgb888) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Rgb888

Source§

fn eq(&self, other: &Rgb888) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Rgb888

Source§

fn partial_cmp(&self, other: &Rgb888) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PixelColor for Rgb888

Source§

type Raw = RawU24

Raw data type. Read more
Source§

impl RgbColor for Rgb888

Source§

const MAX_R: u8 = 255u8

The maximum value in the red channel.
Source§

const MAX_G: u8 = 255u8

The maximum value in the green channel.
Source§

const MAX_B: u8 = 255u8

The maximum value in the blue channel.
Source§

const BLACK: Rgb888

Black color (R: 0%, G: 0%, B: 0%)
Source§

const RED: Rgb888

Red color (R: 100%, G: 0%, B: 0%)
Source§

const GREEN: Rgb888

Green color (R: 0%, G: 100%, B: 0%)
Source§

const BLUE: Rgb888

Blue color (R: 0%, G: 0%, B: 100%)
Source§

const YELLOW: Rgb888

Yellow color (R: 100%, G: 100%, B: 0%)
Source§

const MAGENTA: Rgb888

Magenta color (R: 100%, G: 0%, B: 100%)
Source§

const CYAN: Rgb888

Cyan color (R: 0%, G: 100%, B: 100%)
Source§

const WHITE: Rgb888

White color (R: 100%, G: 100%, B: 100%)
Source§

fn r(&self) -> u8

Returns the red channel value.
Source§

fn g(&self) -> u8

Returns the green channel value.
Source§

fn b(&self) -> u8

Returns the blue channel value.
Source§

impl WebColors for Rgb888

Named web colors.

Source§

const CSS_ALICE_BLUE: Rgb888

Alice Blue

Source§

const CSS_ANTIQUE_WHITE: Rgb888

Antique White

Source§

const CSS_AQUA: Rgb888

Aqua

Source§

const CSS_AQUAMARINE: Rgb888

Aquamarine

Source§

const CSS_AZURE: Rgb888

Azure

Source§

const CSS_BEIGE: Rgb888

Beige

Source§

const CSS_BISQUE: Rgb888

Bisque

Source§

const CSS_BLACK: Rgb888

Black

Source§

const CSS_BLANCHED_ALMOND: Rgb888

Blanched Almond

Source§

const CSS_BLUE: Rgb888

Blue

Source§

const CSS_BLUE_VIOLET: Rgb888

Blue Violet

Source§

const CSS_BROWN: Rgb888

Brown

Source§

const CSS_BURLY_WOOD: Rgb888

Burly Wood

Source§

const CSS_CADET_BLUE: Rgb888

Cadet Blue

Source§

const CSS_CHARTREUSE: Rgb888

Chartreuse

Source§

const CSS_CHOCOLATE: Rgb888

Chocolate

Source§

const CSS_CORAL: Rgb888

Coral

Source§

const CSS_CORNFLOWER_BLUE: Rgb888

Cornflower Blue

Source§

const CSS_CORNSILK: Rgb888

Cornsilk

Source§

const CSS_CRIMSON: Rgb888

Crimson

Source§

const CSS_CYAN: Rgb888

Cyan

Source§

const CSS_DARK_BLUE: Rgb888

Dark Blue

Source§

const CSS_DARK_CYAN: Rgb888

Dark Cyan

Source§

const CSS_DARK_GOLDENROD: Rgb888

Dark Goldenrod

Source§

const CSS_DARK_GRAY: Rgb888

Dark Gray

Source§

const CSS_DARK_GREEN: Rgb888

Dark Green

Source§

const CSS_DARK_KHAKI: Rgb888

Dark Khaki

Source§

const CSS_DARK_MAGENTA: Rgb888

Dark Magenta

Source§

const CSS_DARK_OLIVE_GREEN: Rgb888

Dark Olive Green

Source§

const CSS_DARK_ORANGE: Rgb888

Dark Orange

Source§

const CSS_DARK_ORCHID: Rgb888

Dark Orchid

Source§

const CSS_DARK_RED: Rgb888

Dark Red

Source§

const CSS_DARK_SALMON: Rgb888

Dark Salmon

Source§

const CSS_DARK_SEA_GREEN: Rgb888

Dark Sea Green

Source§

const CSS_DARK_SLATE_BLUE: Rgb888

Dark Slate Blue

Source§

const CSS_DARK_SLATE_GRAY: Rgb888

Dark Slate Gray

Source§

const CSS_DARK_TURQUOISE: Rgb888

Dark Turquoise

Source§

const CSS_DARK_VIOLET: Rgb888

Dark Violet

Source§

const CSS_DEEP_PINK: Rgb888

Deep Pink

Source§

const CSS_DEEP_SKY_BLUE: Rgb888

Deep Sky Blue

Source§

const CSS_DIM_GRAY: Rgb888

Dim Gray

Source§

const CSS_DODGER_BLUE: Rgb888

Dodger Blue

Source§

const CSS_FIRE_BRICK: Rgb888

Fire Brick

Source§

const CSS_FLORAL_WHITE: Rgb888

Floral White

Source§

const CSS_FOREST_GREEN: Rgb888

Forest Green

Source§

const CSS_FUCHSIA: Rgb888

Fuchsia

Source§

const CSS_GAINSBORO: Rgb888

Gainsboro

Source§

const CSS_GHOST_WHITE: Rgb888

Ghost White

Source§

const CSS_GOLD: Rgb888

Gold

Source§

const CSS_GOLDENROD: Rgb888

Goldenrod

Source§

const CSS_GRAY: Rgb888

Gray

Source§

const CSS_GREEN: Rgb888

Green

Source§

const CSS_GREEN_YELLOW: Rgb888

Green Yellow

Source§

const CSS_HONEYDEW: Rgb888

Honeydew

Source§

const CSS_HOT_PINK: Rgb888

Hot Pink

Source§

const CSS_INDIAN_RED: Rgb888

Indian Red

Source§

const CSS_INDIGO: Rgb888

Indigo

Source§

const CSS_IVORY: Rgb888

Ivory

Source§

const CSS_KHAKI: Rgb888

Khaki

Source§

const CSS_LAVENDER: Rgb888

Lavender

Source§

const CSS_LAVENDER_BLUSH: Rgb888

Lavender Blush

Source§

const CSS_LAWN_GREEN: Rgb888

Lawn Green

Source§

const CSS_LEMON_CHIFFON: Rgb888

Lemon Chiffon

Source§

const CSS_LIGHT_BLUE: Rgb888

Light Blue

Source§

const CSS_LIGHT_CORAL: Rgb888

Light Coral

Source§

const CSS_LIGHT_CYAN: Rgb888

Light Cyan

Source§

const CSS_LIGHT_GOLDENROD_YELLOW: Rgb888

Light Goldenrod Yellow

Source§

const CSS_LIGHT_GRAY: Rgb888

Light Gray

Source§

const CSS_LIGHT_GREEN: Rgb888

Light Green

Source§

const CSS_LIGHT_PINK: Rgb888

Light Pink

Source§

const CSS_LIGHT_SALMON: Rgb888

Light Salmon

Source§

const CSS_LIGHT_SEA_GREEN: Rgb888

Light Sea Green

Source§

const CSS_LIGHT_SKY_BLUE: Rgb888

Light Sky Blue

Source§

const CSS_LIGHT_SLATE_GRAY: Rgb888

Light Slate Gray

Source§

const CSS_LIGHT_STEEL_BLUE: Rgb888

Light Steel Blue

Source§

const CSS_LIGHT_YELLOW: Rgb888

Light Yellow

Source§

const CSS_LIME: Rgb888

Lime

Source§

const CSS_LIME_GREEN: Rgb888

Lime Green

Source§

const CSS_LINEN: Rgb888

Linen

Source§

const CSS_MAGENTA: Rgb888

Magenta

Source§

const CSS_MAROON: Rgb888

Maroon

Source§

const CSS_MEDIUM_AQUAMARINE: Rgb888

Medium Aquamarine

Source§

const CSS_MEDIUM_BLUE: Rgb888

Medium Blue

Source§

const CSS_MEDIUM_ORCHID: Rgb888

Medium Orchid

Source§

const CSS_MEDIUM_PURPLE: Rgb888

Medium Purple

Source§

const CSS_MEDIUM_SEA_GREEN: Rgb888

Medium Sea Green

Source§

const CSS_MEDIUM_SLATE_BLUE: Rgb888

Medium Slate Blue

Source§

const CSS_MEDIUM_SPRING_GREEN: Rgb888

Medium Spring Green

Source§

const CSS_MEDIUM_TURQUOISE: Rgb888

Medium Turquoise

Source§

const CSS_MEDIUM_VIOLET_RED: Rgb888

Medium Violet Red

Source§

const CSS_MIDNIGHT_BLUE: Rgb888

Midnight Blue

Source§

const CSS_MINT_CREAM: Rgb888

Mint Cream

Source§

const CSS_MISTY_ROSE: Rgb888

Misty Rose

Source§

const CSS_MOCCASIN: Rgb888

Moccasin

Source§

const CSS_NAVAJO_WHITE: Rgb888

Navajo White

Source§

const CSS_NAVY: Rgb888

Navy

Source§

const CSS_OLD_LACE: Rgb888

Old Lace

Source§

const CSS_OLIVE: Rgb888

Olive

Source§

const CSS_OLIVE_DRAB: Rgb888

Olive Drab

Source§

const CSS_ORANGE: Rgb888

Orange

Source§

const CSS_ORANGE_RED: Rgb888

Orange Red

Source§

const CSS_ORCHID: Rgb888

Orchid

Source§

const CSS_PALE_GOLDENROD: Rgb888

Pale Goldenrod

Source§

const CSS_PALE_GREEN: Rgb888

Pale Green

Source§

const CSS_PALE_TURQUOISE: Rgb888

Pale Turquoise

Source§

const CSS_PALE_VIOLET_RED: Rgb888

Pale Violet Red

Source§

const CSS_PAPAYA_WHIP: Rgb888

Papaya Whip

Source§

const CSS_PEACH_PUFF: Rgb888

Peach Puff

Source§

const CSS_PERU: Rgb888

Peru

Source§

const CSS_PINK: Rgb888

Pink

Source§

const CSS_PLUM: Rgb888

Plum

Source§

const CSS_POWDER_BLUE: Rgb888

Powder Blue

Source§

const CSS_PURPLE: Rgb888

Purple

Source§

const CSS_REBECCAPURPLE: Rgb888

Rebeccapurple

Source§

const CSS_RED: Rgb888

Red

Source§

const CSS_ROSY_BROWN: Rgb888

Rosy Brown

Source§

const CSS_ROYAL_BLUE: Rgb888

Royal Blue

Source§

const CSS_SADDLE_BROWN: Rgb888

Saddle Brown

Source§

const CSS_SALMON: Rgb888

Salmon

Source§

const CSS_SANDY_BROWN: Rgb888

Sandy Brown

Source§

const CSS_SEA_GREEN: Rgb888

Sea Green

Source§

const CSS_SEASHELL: Rgb888

Seashell

Source§

const CSS_SIENNA: Rgb888

Sienna

Source§

const CSS_SILVER: Rgb888

Silver

Source§

const CSS_SKY_BLUE: Rgb888

Sky Blue

Source§

const CSS_SLATE_BLUE: Rgb888

Slate Blue

Source§

const CSS_SLATE_GRAY: Rgb888

Slate Gray

Source§

const CSS_SNOW: Rgb888

Snow

Source§

const CSS_SPRING_GREEN: Rgb888

Spring Green

Source§

const CSS_STEEL_BLUE: Rgb888

Steel Blue

Source§

const CSS_TAN: Rgb888

Tan

Source§

const CSS_TEAL: Rgb888

Teal

Source§

const CSS_THISTLE: Rgb888

Thistle

Source§

const CSS_TOMATO: Rgb888

Tomato

Source§

const CSS_TURQUOISE: Rgb888

Turquoise

Source§

const CSS_VIOLET: Rgb888

Violet

Source§

const CSS_WHEAT: Rgb888

Wheat

Source§

const CSS_WHITE: Rgb888

White

Source§

const CSS_WHITE_SMOKE: Rgb888

White Smoke

Source§

const CSS_YELLOW: Rgb888

Yellow

Source§

const CSS_YELLOW_GREEN: Rgb888

Yellow Green

Source§

impl Copy for Rgb888

Source§

impl Eq for Rgb888

Source§

impl StructuralPartialEq for Rgb888

Auto Trait Implementations§

§

impl Freeze for Rgb888

§

impl RefUnwindSafe for Rgb888

§

impl Send for Rgb888

§

impl Sync for Rgb888

§

impl Unpin for Rgb888

§

impl UnwindSafe for Rgb888

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> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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<C> IntoStorage for C
where C: PixelColor, <C as PixelColor>::Raw: From<C>,

Source§

type Storage = <<C as PixelColor>::Raw as RawData>::Storage

The underlying storage type for the pixel color
Source§

fn into_storage(self) -> <C as IntoStorage>::Storage

Convert the PixelColor into its raw storage form
Source§

impl<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<C> ToBytes for C
where C: PixelColor + Into<<C as PixelColor>::Raw>,

Source§

type Bytes = <<C as PixelColor>::Raw as ToBytes>::Bytes

Return type of methods in this trait.
Source§

fn to_le_bytes(self) -> <C as ToBytes>::Bytes

Converts a color into a byte array with little endian byte order.
Source§

fn to_be_bytes(self) -> <C as ToBytes>::Bytes

Converts a color into a byte array with big endian byte order.
Source§

fn to_ne_bytes(self) -> <C as ToBytes>::Bytes

Converts a color into a byte array with native byte order.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,