embedded_graphics::pixelcolor

Struct Bgr565

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

Bgr565 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 Bgr565

Source

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

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

Trait Implementations§

Source§

impl Clone for Bgr565

Source§

fn clone(&self) -> Bgr565

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 Bgr565

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 Bgr565

Source§

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

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

impl Default for Bgr565

Source§

fn default() -> Bgr565

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

impl Format for Bgr565

Source§

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

Writes the defmt representation of self to fmt.
Source§

impl From<Bgr555> for Bgr565

Source§

fn from(other: Bgr555) -> Bgr565

Converts to this type from the input type.
Source§

impl From<Bgr565> for Bgr555

Source§

fn from(other: Bgr565) -> Bgr555

Converts to this type from the input type.
Source§

impl From<Bgr565> for Bgr666

Source§

fn from(other: Bgr565) -> Bgr666

Converts to this type from the input type.
Source§

impl From<Bgr565> for Bgr888

Source§

fn from(other: Bgr565) -> Bgr888

Converts to this type from the input type.
Source§

impl From<Bgr565> for BinaryColor

Source§

fn from(color: Bgr565) -> BinaryColor

Converts to this type from the input type.
Source§

impl From<Bgr565> for Gray2

Source§

fn from(other: Bgr565) -> Gray2

Converts to this type from the input type.
Source§

impl From<Bgr565> for Gray4

Source§

fn from(other: Bgr565) -> Gray4

Converts to this type from the input type.
Source§

impl From<Bgr565> for Gray8

Source§

fn from(other: Bgr565) -> Gray8

Converts to this type from the input type.
Source§

impl From<Bgr565> for RawU16

Source§

fn from(color: Bgr565) -> RawU16

Converts to this type from the input type.
Source§

impl From<Bgr565> for Rgb555

Source§

fn from(other: Bgr565) -> Rgb555

Converts to this type from the input type.
Source§

impl From<Bgr565> for Rgb565

Source§

fn from(other: Bgr565) -> Rgb565

Converts to this type from the input type.
Source§

impl From<Bgr565> for Rgb666

Source§

fn from(other: Bgr565) -> Rgb666

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 Bgr565

Source§

fn from(other: Bgr666) -> Bgr565

Converts to this type from the input type.
Source§

impl From<Bgr888> for Bgr565

Source§

fn from(other: Bgr888) -> Bgr565

Converts to this type from the input type.
Source§

impl From<BinaryColor> for Bgr565

Source§

fn from(color: BinaryColor) -> Bgr565

Converts to this type from the input type.
Source§

impl From<Gray2> for Bgr565

Source§

fn from(other: Gray2) -> Bgr565

Converts to this type from the input type.
Source§

impl From<Gray4> for Bgr565

Source§

fn from(other: Gray4) -> Bgr565

Converts to this type from the input type.
Source§

impl From<Gray8> for Bgr565

Source§

fn from(other: Gray8) -> Bgr565

Converts to this type from the input type.
Source§

impl From<RawU16> for Bgr565

Source§

fn from(data: RawU16) -> Bgr565

Converts to this type from the input type.
Source§

impl From<Rgb555> for Bgr565

Source§

fn from(other: Rgb555) -> Bgr565

Converts to this type from the input type.
Source§

impl From<Rgb565> for Bgr565

Source§

fn from(other: Rgb565) -> Bgr565

Converts to this type from the input type.
Source§

impl From<Rgb666> for Bgr565

Source§

fn from(other: Rgb666) -> Bgr565

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 Hash for Bgr565

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 Bgr565

Source§

fn cmp(&self, other: &Bgr565) -> 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 Bgr565

Source§

fn eq(&self, other: &Bgr565) -> 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 Bgr565

Source§

fn partial_cmp(&self, other: &Bgr565) -> 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 Bgr565

Source§

type Raw = RawU16

Raw data type. Read more
Source§

impl RgbColor for Bgr565

Source§

const MAX_R: u8 = 31u8

The maximum value in the red channel.
Source§

const MAX_G: u8 = 63u8

The maximum value in the green channel.
Source§

const MAX_B: u8 = 31u8

The maximum value in the blue channel.
Source§

const BLACK: Bgr565

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

const RED: Bgr565

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

const GREEN: Bgr565

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

const BLUE: Bgr565

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

const YELLOW: Bgr565

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

const MAGENTA: Bgr565

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

const CYAN: Bgr565

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

const WHITE: Bgr565

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 Bgr565

Named web colors.

Source§

const CSS_ALICE_BLUE: Bgr565

Alice Blue

Source§

const CSS_ANTIQUE_WHITE: Bgr565

Antique White

Source§

const CSS_AQUA: Bgr565

Aqua

Source§

const CSS_AQUAMARINE: Bgr565

Aquamarine

Source§

const CSS_AZURE: Bgr565

Azure

Source§

const CSS_BEIGE: Bgr565

Beige

Source§

const CSS_BISQUE: Bgr565

Bisque

Source§

const CSS_BLACK: Bgr565

Black

Source§

const CSS_BLANCHED_ALMOND: Bgr565

Blanched Almond

Source§

const CSS_BLUE: Bgr565

Blue

Source§

const CSS_BLUE_VIOLET: Bgr565

Blue Violet

Source§

const CSS_BROWN: Bgr565

Brown

Source§

const CSS_BURLY_WOOD: Bgr565

Burly Wood

Source§

const CSS_CADET_BLUE: Bgr565

Cadet Blue

Source§

const CSS_CHARTREUSE: Bgr565

Chartreuse

Source§

const CSS_CHOCOLATE: Bgr565

Chocolate

Source§

const CSS_CORAL: Bgr565

Coral

Source§

const CSS_CORNFLOWER_BLUE: Bgr565

Cornflower Blue

Source§

const CSS_CORNSILK: Bgr565

Cornsilk

Source§

const CSS_CRIMSON: Bgr565

Crimson

Source§

const CSS_CYAN: Bgr565

Cyan

Source§

const CSS_DARK_BLUE: Bgr565

Dark Blue

Source§

const CSS_DARK_CYAN: Bgr565

Dark Cyan

Source§

const CSS_DARK_GOLDENROD: Bgr565

Dark Goldenrod

Source§

const CSS_DARK_GRAY: Bgr565

Dark Gray

Source§

const CSS_DARK_GREEN: Bgr565

Dark Green

Source§

const CSS_DARK_KHAKI: Bgr565

Dark Khaki

Source§

const CSS_DARK_MAGENTA: Bgr565

Dark Magenta

Source§

const CSS_DARK_OLIVE_GREEN: Bgr565

Dark Olive Green

Source§

const CSS_DARK_ORANGE: Bgr565

Dark Orange

Source§

const CSS_DARK_ORCHID: Bgr565

Dark Orchid

Source§

const CSS_DARK_RED: Bgr565

Dark Red

Source§

const CSS_DARK_SALMON: Bgr565

Dark Salmon

Source§

const CSS_DARK_SEA_GREEN: Bgr565

Dark Sea Green

Source§

const CSS_DARK_SLATE_BLUE: Bgr565

Dark Slate Blue

Source§

const CSS_DARK_SLATE_GRAY: Bgr565

Dark Slate Gray

Source§

const CSS_DARK_TURQUOISE: Bgr565

Dark Turquoise

Source§

const CSS_DARK_VIOLET: Bgr565

Dark Violet

Source§

const CSS_DEEP_PINK: Bgr565

Deep Pink

Source§

const CSS_DEEP_SKY_BLUE: Bgr565

Deep Sky Blue

Source§

const CSS_DIM_GRAY: Bgr565

Dim Gray

Source§

const CSS_DODGER_BLUE: Bgr565

Dodger Blue

Source§

const CSS_FIRE_BRICK: Bgr565

Fire Brick

Source§

const CSS_FLORAL_WHITE: Bgr565

Floral White

Source§

const CSS_FOREST_GREEN: Bgr565

Forest Green

Source§

const CSS_FUCHSIA: Bgr565

Fuchsia

Source§

const CSS_GAINSBORO: Bgr565

Gainsboro

Source§

const CSS_GHOST_WHITE: Bgr565

Ghost White

Source§

const CSS_GOLD: Bgr565

Gold

Source§

const CSS_GOLDENROD: Bgr565

Goldenrod

Source§

const CSS_GRAY: Bgr565

Gray

Source§

const CSS_GREEN: Bgr565

Green

Source§

const CSS_GREEN_YELLOW: Bgr565

Green Yellow

Source§

const CSS_HONEYDEW: Bgr565

Honeydew

Source§

const CSS_HOT_PINK: Bgr565

Hot Pink

Source§

const CSS_INDIAN_RED: Bgr565

Indian Red

Source§

const CSS_INDIGO: Bgr565

Indigo

Source§

const CSS_IVORY: Bgr565

Ivory

Source§

const CSS_KHAKI: Bgr565

Khaki

Source§

const CSS_LAVENDER: Bgr565

Lavender

Source§

const CSS_LAVENDER_BLUSH: Bgr565

Lavender Blush

Source§

const CSS_LAWN_GREEN: Bgr565

Lawn Green

Source§

const CSS_LEMON_CHIFFON: Bgr565

Lemon Chiffon

Source§

const CSS_LIGHT_BLUE: Bgr565

Light Blue

Source§

const CSS_LIGHT_CORAL: Bgr565

Light Coral

Source§

const CSS_LIGHT_CYAN: Bgr565

Light Cyan

Source§

const CSS_LIGHT_GOLDENROD_YELLOW: Bgr565

Light Goldenrod Yellow

Source§

const CSS_LIGHT_GRAY: Bgr565

Light Gray

Source§

const CSS_LIGHT_GREEN: Bgr565

Light Green

Source§

const CSS_LIGHT_PINK: Bgr565

Light Pink

Source§

const CSS_LIGHT_SALMON: Bgr565

Light Salmon

Source§

const CSS_LIGHT_SEA_GREEN: Bgr565

Light Sea Green

Source§

const CSS_LIGHT_SKY_BLUE: Bgr565

Light Sky Blue

Source§

const CSS_LIGHT_SLATE_GRAY: Bgr565

Light Slate Gray

Source§

const CSS_LIGHT_STEEL_BLUE: Bgr565

Light Steel Blue

Source§

const CSS_LIGHT_YELLOW: Bgr565

Light Yellow

Source§

const CSS_LIME: Bgr565

Lime

Source§

const CSS_LIME_GREEN: Bgr565

Lime Green

Source§

const CSS_LINEN: Bgr565

Linen

Source§

const CSS_MAGENTA: Bgr565

Magenta

Source§

const CSS_MAROON: Bgr565

Maroon

Source§

const CSS_MEDIUM_AQUAMARINE: Bgr565

Medium Aquamarine

Source§

const CSS_MEDIUM_BLUE: Bgr565

Medium Blue

Source§

const CSS_MEDIUM_ORCHID: Bgr565

Medium Orchid

Source§

const CSS_MEDIUM_PURPLE: Bgr565

Medium Purple

Source§

const CSS_MEDIUM_SEA_GREEN: Bgr565

Medium Sea Green

Source§

const CSS_MEDIUM_SLATE_BLUE: Bgr565

Medium Slate Blue

Source§

const CSS_MEDIUM_SPRING_GREEN: Bgr565

Medium Spring Green

Source§

const CSS_MEDIUM_TURQUOISE: Bgr565

Medium Turquoise

Source§

const CSS_MEDIUM_VIOLET_RED: Bgr565

Medium Violet Red

Source§

const CSS_MIDNIGHT_BLUE: Bgr565

Midnight Blue

Source§

const CSS_MINT_CREAM: Bgr565

Mint Cream

Source§

const CSS_MISTY_ROSE: Bgr565

Misty Rose

Source§

const CSS_MOCCASIN: Bgr565

Moccasin

Source§

const CSS_NAVAJO_WHITE: Bgr565

Navajo White

Source§

const CSS_NAVY: Bgr565

Navy

Source§

const CSS_OLD_LACE: Bgr565

Old Lace

Source§

const CSS_OLIVE: Bgr565

Olive

Source§

const CSS_OLIVE_DRAB: Bgr565

Olive Drab

Source§

const CSS_ORANGE: Bgr565

Orange

Source§

const CSS_ORANGE_RED: Bgr565

Orange Red

Source§

const CSS_ORCHID: Bgr565

Orchid

Source§

const CSS_PALE_GOLDENROD: Bgr565

Pale Goldenrod

Source§

const CSS_PALE_GREEN: Bgr565

Pale Green

Source§

const CSS_PALE_TURQUOISE: Bgr565

Pale Turquoise

Source§

const CSS_PALE_VIOLET_RED: Bgr565

Pale Violet Red

Source§

const CSS_PAPAYA_WHIP: Bgr565

Papaya Whip

Source§

const CSS_PEACH_PUFF: Bgr565

Peach Puff

Source§

const CSS_PERU: Bgr565

Peru

Source§

const CSS_PINK: Bgr565

Pink

Source§

const CSS_PLUM: Bgr565

Plum

Source§

const CSS_POWDER_BLUE: Bgr565

Powder Blue

Source§

const CSS_PURPLE: Bgr565

Purple

Source§

const CSS_REBECCAPURPLE: Bgr565

Rebeccapurple

Source§

const CSS_RED: Bgr565

Red

Source§

const CSS_ROSY_BROWN: Bgr565

Rosy Brown

Source§

const CSS_ROYAL_BLUE: Bgr565

Royal Blue

Source§

const CSS_SADDLE_BROWN: Bgr565

Saddle Brown

Source§

const CSS_SALMON: Bgr565

Salmon

Source§

const CSS_SANDY_BROWN: Bgr565

Sandy Brown

Source§

const CSS_SEA_GREEN: Bgr565

Sea Green

Source§

const CSS_SEASHELL: Bgr565

Seashell

Source§

const CSS_SIENNA: Bgr565

Sienna

Source§

const CSS_SILVER: Bgr565

Silver

Source§

const CSS_SKY_BLUE: Bgr565

Sky Blue

Source§

const CSS_SLATE_BLUE: Bgr565

Slate Blue

Source§

const CSS_SLATE_GRAY: Bgr565

Slate Gray

Source§

const CSS_SNOW: Bgr565

Snow

Source§

const CSS_SPRING_GREEN: Bgr565

Spring Green

Source§

const CSS_STEEL_BLUE: Bgr565

Steel Blue

Source§

const CSS_TAN: Bgr565

Tan

Source§

const CSS_TEAL: Bgr565

Teal

Source§

const CSS_THISTLE: Bgr565

Thistle

Source§

const CSS_TOMATO: Bgr565

Tomato

Source§

const CSS_TURQUOISE: Bgr565

Turquoise

Source§

const CSS_VIOLET: Bgr565

Violet

Source§

const CSS_WHEAT: Bgr565

Wheat

Source§

const CSS_WHITE: Bgr565

White

Source§

const CSS_WHITE_SMOKE: Bgr565

White Smoke

Source§

const CSS_YELLOW: Bgr565

Yellow

Source§

const CSS_YELLOW_GREEN: Bgr565

Yellow Green

Source§

impl Copy for Bgr565

Source§

impl Eq for Bgr565

Source§

impl StructuralPartialEq for Bgr565

Auto Trait Implementations§

§

impl Freeze for Bgr565

§

impl RefUnwindSafe for Bgr565

§

impl Send for Bgr565

§

impl Sync for Bgr565

§

impl Unpin for Bgr565

§

impl UnwindSafe for Bgr565

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,