Skip to main content

Colors

Struct Colors 

Source
pub struct Colors;
Expand description

The named colours of the material palette, as plain Color constants.

A family’s bare name is its primary step: Colors::RED is Colors::RED_500, and Colors::RED_ACCENT is the accent family’s 200. Every other step is spelled out — Colors::RED_50 through Colors::RED_900, Colors::RED_ACCENT_100 through Colors::RED_ACCENT_700.

The neutral constants carry the palette’s standard opacities: Colors::BLACK54 is black at 54% — the value the design system uses for secondary text, not a number to re-derive by hand.

use frus_core::Colors;

assert_eq!(Colors::RED, Colors::RED_500);
assert_eq!(Colors::BLACK.a, 1.0);
assert!(Colors::BLACK54.a < 1.0);

Implementations§

Source§

impl Colors

Source

pub const TRANSPARENT: Color

Fully transparent — a colour that paints nothing.

Source

pub const BLACK: Color

Opaque black.

Source

pub const BLACK87: Color

Black at 87% opacity.

Source

pub const BLACK54: Color

Black at 54% opacity.

Source

pub const BLACK45: Color

Black at 45% opacity.

Source

pub const BLACK38: Color

Black at 38% opacity.

Source

pub const BLACK26: Color

Black at 26% opacity.

Source

pub const BLACK12: Color

Black at 12% opacity.

Source

pub const WHITE: Color

Opaque white.

Source

pub const WHITE70: Color

White at 70% opacity.

Source

pub const WHITE60: Color

White at 60% opacity.

Source

pub const WHITE54: Color

White at 54% opacity.

Source

pub const WHITE38: Color

White at 38% opacity.

Source

pub const WHITE30: Color

White at 30% opacity.

Source

pub const WHITE24: Color

White at 24% opacity.

Source

pub const WHITE12: Color

White at 12% opacity.

Source

pub const WHITE10: Color

White at 10% opacity.

Source

pub const RED: Color

Red — the family’s primary step (500).

Source

pub const RED_50: Color

Red, step 50.

Source

pub const RED_100: Color

Red, step 100.

Source

pub const RED_200: Color

Red, step 200.

Source

pub const RED_300: Color

Red, step 300.

Source

pub const RED_400: Color

Red, step 400.

Source

pub const RED_500: Color

Red, step 500.

Source

pub const RED_600: Color

Red, step 600.

Source

pub const RED_700: Color

Red, step 700.

Source

pub const RED_800: Color

Red, step 800.

Source

pub const RED_900: Color

Red, step 900.

Source

pub const PINK: Color

Pink — the family’s primary step (500).

Source

pub const PINK_50: Color

Pink, step 50.

Source

pub const PINK_100: Color

Pink, step 100.

Source

pub const PINK_200: Color

Pink, step 200.

Source

pub const PINK_300: Color

Pink, step 300.

Source

pub const PINK_400: Color

Pink, step 400.

Source

pub const PINK_500: Color

Pink, step 500.

Source

pub const PINK_600: Color

Pink, step 600.

Source

pub const PINK_700: Color

Pink, step 700.

Source

pub const PINK_800: Color

Pink, step 800.

Source

pub const PINK_900: Color

Pink, step 900.

Source

pub const PURPLE: Color

Purple — the family’s primary step (500).

Source

pub const PURPLE_50: Color

Purple, step 50.

Source

pub const PURPLE_100: Color

Purple, step 100.

Source

pub const PURPLE_200: Color

Purple, step 200.

Source

pub const PURPLE_300: Color

Purple, step 300.

Source

pub const PURPLE_400: Color

Purple, step 400.

Source

pub const PURPLE_500: Color

Purple, step 500.

Source

pub const PURPLE_600: Color

Purple, step 600.

Source

pub const PURPLE_700: Color

Purple, step 700.

Source

pub const PURPLE_800: Color

Purple, step 800.

Source

pub const PURPLE_900: Color

Purple, step 900.

Source

pub const DEEP_PURPLE: Color

Deep purple — the family’s primary step (500).

Source

pub const DEEP_PURPLE_50: Color

Deep purple, step 50.

Source

pub const DEEP_PURPLE_100: Color

Deep purple, step 100.

Source

pub const DEEP_PURPLE_200: Color

Deep purple, step 200.

Source

pub const DEEP_PURPLE_300: Color

Deep purple, step 300.

Source

pub const DEEP_PURPLE_400: Color

Deep purple, step 400.

Source

pub const DEEP_PURPLE_500: Color

Deep purple, step 500.

Source

pub const DEEP_PURPLE_600: Color

Deep purple, step 600.

Source

pub const DEEP_PURPLE_700: Color

Deep purple, step 700.

Source

pub const DEEP_PURPLE_800: Color

Deep purple, step 800.

Source

pub const DEEP_PURPLE_900: Color

Deep purple, step 900.

Source

pub const INDIGO: Color

Indigo — the family’s primary step (500).

Source

pub const INDIGO_50: Color

Indigo, step 50.

Source

pub const INDIGO_100: Color

Indigo, step 100.

Source

pub const INDIGO_200: Color

Indigo, step 200.

Source

pub const INDIGO_300: Color

Indigo, step 300.

Source

pub const INDIGO_400: Color

Indigo, step 400.

Source

pub const INDIGO_500: Color

Indigo, step 500.

Source

pub const INDIGO_600: Color

Indigo, step 600.

Source

pub const INDIGO_700: Color

Indigo, step 700.

Source

pub const INDIGO_800: Color

Indigo, step 800.

Source

pub const INDIGO_900: Color

Indigo, step 900.

Source

pub const BLUE: Color

Blue — the family’s primary step (500).

Source

pub const BLUE_50: Color

Blue, step 50.

Source

pub const BLUE_100: Color

Blue, step 100.

Source

pub const BLUE_200: Color

Blue, step 200.

Source

pub const BLUE_300: Color

Blue, step 300.

Source

pub const BLUE_400: Color

Blue, step 400.

Source

pub const BLUE_500: Color

Blue, step 500.

Source

pub const BLUE_600: Color

Blue, step 600.

Source

pub const BLUE_700: Color

Blue, step 700.

Source

pub const BLUE_800: Color

Blue, step 800.

Source

pub const BLUE_900: Color

Blue, step 900.

Source

pub const LIGHT_BLUE: Color

Light blue — the family’s primary step (500).

Source

pub const LIGHT_BLUE_50: Color

Light blue, step 50.

Source

pub const LIGHT_BLUE_100: Color

Light blue, step 100.

Source

pub const LIGHT_BLUE_200: Color

Light blue, step 200.

Source

pub const LIGHT_BLUE_300: Color

Light blue, step 300.

Source

pub const LIGHT_BLUE_400: Color

Light blue, step 400.

Source

pub const LIGHT_BLUE_500: Color

Light blue, step 500.

Source

pub const LIGHT_BLUE_600: Color

Light blue, step 600.

Source

pub const LIGHT_BLUE_700: Color

Light blue, step 700.

Source

pub const LIGHT_BLUE_800: Color

Light blue, step 800.

Source

pub const LIGHT_BLUE_900: Color

Light blue, step 900.

Source

pub const CYAN: Color

Cyan — the family’s primary step (500).

Source

pub const CYAN_50: Color

Cyan, step 50.

Source

pub const CYAN_100: Color

Cyan, step 100.

Source

pub const CYAN_200: Color

Cyan, step 200.

Source

pub const CYAN_300: Color

Cyan, step 300.

Source

pub const CYAN_400: Color

Cyan, step 400.

Source

pub const CYAN_500: Color

Cyan, step 500.

Source

pub const CYAN_600: Color

Cyan, step 600.

Source

pub const CYAN_700: Color

Cyan, step 700.

Source

pub const CYAN_800: Color

Cyan, step 800.

Source

pub const CYAN_900: Color

Cyan, step 900.

Source

pub const TEAL: Color

Teal — the family’s primary step (500).

Source

pub const TEAL_50: Color

Teal, step 50.

Source

pub const TEAL_100: Color

Teal, step 100.

Source

pub const TEAL_200: Color

Teal, step 200.

Source

pub const TEAL_300: Color

Teal, step 300.

Source

pub const TEAL_400: Color

Teal, step 400.

Source

pub const TEAL_500: Color

Teal, step 500.

Source

pub const TEAL_600: Color

Teal, step 600.

Source

pub const TEAL_700: Color

Teal, step 700.

Source

pub const TEAL_800: Color

Teal, step 800.

Source

pub const TEAL_900: Color

Teal, step 900.

Source

pub const GREEN: Color

Green — the family’s primary step (500).

Source

pub const GREEN_50: Color

Green, step 50.

Source

pub const GREEN_100: Color

Green, step 100.

Source

pub const GREEN_200: Color

Green, step 200.

Source

pub const GREEN_300: Color

Green, step 300.

Source

pub const GREEN_400: Color

Green, step 400.

Source

pub const GREEN_500: Color

Green, step 500.

Source

pub const GREEN_600: Color

Green, step 600.

Source

pub const GREEN_700: Color

Green, step 700.

Source

pub const GREEN_800: Color

Green, step 800.

Source

pub const GREEN_900: Color

Green, step 900.

Source

pub const LIGHT_GREEN: Color

Light green — the family’s primary step (500).

Source

pub const LIGHT_GREEN_50: Color

Light green, step 50.

Source

pub const LIGHT_GREEN_100: Color

Light green, step 100.

Source

pub const LIGHT_GREEN_200: Color

Light green, step 200.

Source

pub const LIGHT_GREEN_300: Color

Light green, step 300.

Source

pub const LIGHT_GREEN_400: Color

Light green, step 400.

Source

pub const LIGHT_GREEN_500: Color

Light green, step 500.

Source

pub const LIGHT_GREEN_600: Color

Light green, step 600.

Source

pub const LIGHT_GREEN_700: Color

Light green, step 700.

Source

pub const LIGHT_GREEN_800: Color

Light green, step 800.

Source

pub const LIGHT_GREEN_900: Color

Light green, step 900.

Source

pub const LIME: Color

Lime — the family’s primary step (500).

Source

pub const LIME_50: Color

Lime, step 50.

Source

pub const LIME_100: Color

Lime, step 100.

Source

pub const LIME_200: Color

Lime, step 200.

Source

pub const LIME_300: Color

Lime, step 300.

Source

pub const LIME_400: Color

Lime, step 400.

Source

pub const LIME_500: Color

Lime, step 500.

Source

pub const LIME_600: Color

Lime, step 600.

Source

pub const LIME_700: Color

Lime, step 700.

Source

pub const LIME_800: Color

Lime, step 800.

Source

pub const LIME_900: Color

Lime, step 900.

Source

pub const YELLOW: Color

Yellow — the family’s primary step (500).

Source

pub const YELLOW_50: Color

Yellow, step 50.

Source

pub const YELLOW_100: Color

Yellow, step 100.

Source

pub const YELLOW_200: Color

Yellow, step 200.

Source

pub const YELLOW_300: Color

Yellow, step 300.

Source

pub const YELLOW_400: Color

Yellow, step 400.

Source

pub const YELLOW_500: Color

Yellow, step 500.

Source

pub const YELLOW_600: Color

Yellow, step 600.

Source

pub const YELLOW_700: Color

Yellow, step 700.

Source

pub const YELLOW_800: Color

Yellow, step 800.

Source

pub const YELLOW_900: Color

Yellow, step 900.

Source

pub const AMBER: Color

Amber — the family’s primary step (500).

Source

pub const AMBER_50: Color

Amber, step 50.

Source

pub const AMBER_100: Color

Amber, step 100.

Source

pub const AMBER_200: Color

Amber, step 200.

Source

pub const AMBER_300: Color

Amber, step 300.

Source

pub const AMBER_400: Color

Amber, step 400.

Source

pub const AMBER_500: Color

Amber, step 500.

Source

pub const AMBER_600: Color

Amber, step 600.

Source

pub const AMBER_700: Color

Amber, step 700.

Source

pub const AMBER_800: Color

Amber, step 800.

Source

pub const AMBER_900: Color

Amber, step 900.

Source

pub const ORANGE: Color

Orange — the family’s primary step (500).

Source

pub const ORANGE_50: Color

Orange, step 50.

Source

pub const ORANGE_100: Color

Orange, step 100.

Source

pub const ORANGE_200: Color

Orange, step 200.

Source

pub const ORANGE_300: Color

Orange, step 300.

Source

pub const ORANGE_400: Color

Orange, step 400.

Source

pub const ORANGE_500: Color

Orange, step 500.

Source

pub const ORANGE_600: Color

Orange, step 600.

Source

pub const ORANGE_700: Color

Orange, step 700.

Source

pub const ORANGE_800: Color

Orange, step 800.

Source

pub const ORANGE_900: Color

Orange, step 900.

Source

pub const DEEP_ORANGE: Color

Deep orange — the family’s primary step (500).

Source

pub const DEEP_ORANGE_50: Color

Deep orange, step 50.

Source

pub const DEEP_ORANGE_100: Color

Deep orange, step 100.

Source

pub const DEEP_ORANGE_200: Color

Deep orange, step 200.

Source

pub const DEEP_ORANGE_300: Color

Deep orange, step 300.

Source

pub const DEEP_ORANGE_400: Color

Deep orange, step 400.

Source

pub const DEEP_ORANGE_500: Color

Deep orange, step 500.

Source

pub const DEEP_ORANGE_600: Color

Deep orange, step 600.

Source

pub const DEEP_ORANGE_700: Color

Deep orange, step 700.

Source

pub const DEEP_ORANGE_800: Color

Deep orange, step 800.

Source

pub const DEEP_ORANGE_900: Color

Deep orange, step 900.

Source

pub const BROWN: Color

Brown — the family’s primary step (500).

Source

pub const BROWN_50: Color

Brown, step 50.

Source

pub const BROWN_100: Color

Brown, step 100.

Source

pub const BROWN_200: Color

Brown, step 200.

Source

pub const BROWN_300: Color

Brown, step 300.

Source

pub const BROWN_400: Color

Brown, step 400.

Source

pub const BROWN_500: Color

Brown, step 500.

Source

pub const BROWN_600: Color

Brown, step 600.

Source

pub const BROWN_700: Color

Brown, step 700.

Source

pub const BROWN_800: Color

Brown, step 800.

Source

pub const BROWN_900: Color

Brown, step 900.

Source

pub const GREY: Color

Grey — the family’s primary step (500).

Source

pub const GREY_50: Color

Grey, step 50.

Source

pub const GREY_100: Color

Grey, step 100.

Source

pub const GREY_200: Color

Grey, step 200.

Source

pub const GREY_300: Color

Grey, step 300.

Source

pub const GREY_350: Color

Grey, step 350.

Source

pub const GREY_400: Color

Grey, step 400.

Source

pub const GREY_500: Color

Grey, step 500.

Source

pub const GREY_600: Color

Grey, step 600.

Source

pub const GREY_700: Color

Grey, step 700.

Source

pub const GREY_800: Color

Grey, step 800.

Source

pub const GREY_850: Color

Grey, step 850.

Source

pub const GREY_900: Color

Grey, step 900.

Source

pub const BLUE_GREY: Color

Blue grey — the family’s primary step (500).

Source

pub const BLUE_GREY_50: Color

Blue grey, step 50.

Source

pub const BLUE_GREY_100: Color

Blue grey, step 100.

Source

pub const BLUE_GREY_200: Color

Blue grey, step 200.

Source

pub const BLUE_GREY_300: Color

Blue grey, step 300.

Source

pub const BLUE_GREY_400: Color

Blue grey, step 400.

Source

pub const BLUE_GREY_500: Color

Blue grey, step 500.

Source

pub const BLUE_GREY_600: Color

Blue grey, step 600.

Source

pub const BLUE_GREY_700: Color

Blue grey, step 700.

Source

pub const BLUE_GREY_800: Color

Blue grey, step 800.

Source

pub const BLUE_GREY_900: Color

Blue grey, step 900.

Source

pub const RED_ACCENT: Color

Red accent — the family’s primary step (200).

Source

pub const RED_ACCENT_100: Color

Red accent, step 100.

Source

pub const RED_ACCENT_200: Color

Red accent, step 200.

Source

pub const RED_ACCENT_400: Color

Red accent, step 400.

Source

pub const RED_ACCENT_700: Color

Red accent, step 700.

Source

pub const PINK_ACCENT: Color

Pink accent — the family’s primary step (200).

Source

pub const PINK_ACCENT_100: Color

Pink accent, step 100.

Source

pub const PINK_ACCENT_200: Color

Pink accent, step 200.

Source

pub const PINK_ACCENT_400: Color

Pink accent, step 400.

Source

pub const PINK_ACCENT_700: Color

Pink accent, step 700.

Source

pub const PURPLE_ACCENT: Color

Purple accent — the family’s primary step (200).

Source

pub const PURPLE_ACCENT_100: Color

Purple accent, step 100.

Source

pub const PURPLE_ACCENT_200: Color

Purple accent, step 200.

Source

pub const PURPLE_ACCENT_400: Color

Purple accent, step 400.

Source

pub const PURPLE_ACCENT_700: Color

Purple accent, step 700.

Source

pub const DEEP_PURPLE_ACCENT: Color

Deep purple accent — the family’s primary step (200).

Source

pub const DEEP_PURPLE_ACCENT_100: Color

Deep purple accent, step 100.

Source

pub const DEEP_PURPLE_ACCENT_200: Color

Deep purple accent, step 200.

Source

pub const DEEP_PURPLE_ACCENT_400: Color

Deep purple accent, step 400.

Source

pub const DEEP_PURPLE_ACCENT_700: Color

Deep purple accent, step 700.

Source

pub const INDIGO_ACCENT: Color

Indigo accent — the family’s primary step (200).

Source

pub const INDIGO_ACCENT_100: Color

Indigo accent, step 100.

Source

pub const INDIGO_ACCENT_200: Color

Indigo accent, step 200.

Source

pub const INDIGO_ACCENT_400: Color

Indigo accent, step 400.

Source

pub const INDIGO_ACCENT_700: Color

Indigo accent, step 700.

Source

pub const BLUE_ACCENT: Color

Blue accent — the family’s primary step (200).

Source

pub const BLUE_ACCENT_100: Color

Blue accent, step 100.

Source

pub const BLUE_ACCENT_200: Color

Blue accent, step 200.

Source

pub const BLUE_ACCENT_400: Color

Blue accent, step 400.

Source

pub const BLUE_ACCENT_700: Color

Blue accent, step 700.

Source

pub const LIGHT_BLUE_ACCENT: Color

Light blue accent — the family’s primary step (200).

Source

pub const LIGHT_BLUE_ACCENT_100: Color

Light blue accent, step 100.

Source

pub const LIGHT_BLUE_ACCENT_200: Color

Light blue accent, step 200.

Source

pub const LIGHT_BLUE_ACCENT_400: Color

Light blue accent, step 400.

Source

pub const LIGHT_BLUE_ACCENT_700: Color

Light blue accent, step 700.

Source

pub const CYAN_ACCENT: Color

Cyan accent — the family’s primary step (200).

Source

pub const CYAN_ACCENT_100: Color

Cyan accent, step 100.

Source

pub const CYAN_ACCENT_200: Color

Cyan accent, step 200.

Source

pub const CYAN_ACCENT_400: Color

Cyan accent, step 400.

Source

pub const CYAN_ACCENT_700: Color

Cyan accent, step 700.

Source

pub const TEAL_ACCENT: Color

Teal accent — the family’s primary step (200).

Source

pub const TEAL_ACCENT_100: Color

Teal accent, step 100.

Source

pub const TEAL_ACCENT_200: Color

Teal accent, step 200.

Source

pub const TEAL_ACCENT_400: Color

Teal accent, step 400.

Source

pub const TEAL_ACCENT_700: Color

Teal accent, step 700.

Source

pub const GREEN_ACCENT: Color

Green accent — the family’s primary step (200).

Source

pub const GREEN_ACCENT_100: Color

Green accent, step 100.

Source

pub const GREEN_ACCENT_200: Color

Green accent, step 200.

Source

pub const GREEN_ACCENT_400: Color

Green accent, step 400.

Source

pub const GREEN_ACCENT_700: Color

Green accent, step 700.

Source

pub const LIGHT_GREEN_ACCENT: Color

Light green accent — the family’s primary step (200).

Source

pub const LIGHT_GREEN_ACCENT_100: Color

Light green accent, step 100.

Source

pub const LIGHT_GREEN_ACCENT_200: Color

Light green accent, step 200.

Source

pub const LIGHT_GREEN_ACCENT_400: Color

Light green accent, step 400.

Source

pub const LIGHT_GREEN_ACCENT_700: Color

Light green accent, step 700.

Source

pub const LIME_ACCENT: Color

Lime accent — the family’s primary step (200).

Source

pub const LIME_ACCENT_100: Color

Lime accent, step 100.

Source

pub const LIME_ACCENT_200: Color

Lime accent, step 200.

Source

pub const LIME_ACCENT_400: Color

Lime accent, step 400.

Source

pub const LIME_ACCENT_700: Color

Lime accent, step 700.

Source

pub const YELLOW_ACCENT: Color

Yellow accent — the family’s primary step (200).

Source

pub const YELLOW_ACCENT_100: Color

Yellow accent, step 100.

Source

pub const YELLOW_ACCENT_200: Color

Yellow accent, step 200.

Source

pub const YELLOW_ACCENT_400: Color

Yellow accent, step 400.

Source

pub const YELLOW_ACCENT_700: Color

Yellow accent, step 700.

Source

pub const AMBER_ACCENT: Color

Amber accent — the family’s primary step (200).

Source

pub const AMBER_ACCENT_100: Color

Amber accent, step 100.

Source

pub const AMBER_ACCENT_200: Color

Amber accent, step 200.

Source

pub const AMBER_ACCENT_400: Color

Amber accent, step 400.

Source

pub const AMBER_ACCENT_700: Color

Amber accent, step 700.

Source

pub const ORANGE_ACCENT: Color

Orange accent — the family’s primary step (200).

Source

pub const ORANGE_ACCENT_100: Color

Orange accent, step 100.

Source

pub const ORANGE_ACCENT_200: Color

Orange accent, step 200.

Source

pub const ORANGE_ACCENT_400: Color

Orange accent, step 400.

Source

pub const ORANGE_ACCENT_700: Color

Orange accent, step 700.

Source

pub const DEEP_ORANGE_ACCENT: Color

Deep orange accent — the family’s primary step (200).

Source

pub const DEEP_ORANGE_ACCENT_100: Color

Deep orange accent, step 100.

Source

pub const DEEP_ORANGE_ACCENT_200: Color

Deep orange accent, step 200.

Source

pub const DEEP_ORANGE_ACCENT_400: Color

Deep orange accent, step 400.

Source

pub const DEEP_ORANGE_ACCENT_700: Color

Deep orange accent, step 700.

Source

pub const PRIMARIES: [MaterialColor; 19]

Every primary ramp, in palette order — the families a colour picker offers.

Source

pub const ACCENTS: [MaterialColor; 16]

Every accent ramp, in palette order.

Trait Implementations§

Source§

impl Clone for Colors

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Colors

Source§

impl Debug for Colors

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> 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<T> CloneToUninit for T
where T: Clone,

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.