Lang

Struct Lang 

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

An identifier for a natural language.

Implementations§

Source§

impl Lang

Source

pub const ABKHAZIAN: Self

Source

pub const AFAR: Self

Source

pub const AFRIKAANS: Self

Source

pub const AGHEM: Self

Source

pub const AKAN: Self

Source

pub const AKKADIAN: Self

Source

pub const ALBANIAN: Self

Source

pub const ALGERIAN_ARABIC: Self

Source

pub const AMHARIC: Self

Source

pub const ANCIENT_EGYPTIAN: Self

Source

pub const ANCIENT_GREEK: Self

Source

pub const ANCIENT_HEBREW: Self

Source

pub const ARABIC: Self

Source

pub const ARAMAIC: Self

Source

pub const ARMENIAN: Self

Source

pub const ASSAMESE: Self

Source

pub const ASTURIAN: Self

Source

pub const ASU: Self

Source

pub const ATSAM: Self

Source

pub const AVESTAN: Self

Source

pub const AWADHI: Self

Source

pub const AYMARA: Self

Source

pub const AZERBAIJANI: Self

Source

pub const BAFIA: Self

Source

pub const BALINESE: Self

Source

pub const BALUCHI: Self

Source

pub const BAMBARA: Self

Source

pub const BANGLA: Self

Source

pub const BASAA: Self

Source

pub const BASHKIR: Self

Source

pub const BASQUE: Self

Source

pub const BATAK_TOBA: Self

Source

pub const BAVARIAN: Self

Source

pub const BELARUSIAN: Self

Source

pub const BEMBA: Self

Source

pub const BENA: Self

Source

pub const BETAWI: Self

Source

pub const BHOJPURI: Self

Source

pub const BLIN: Self

Source

pub const BODO: Self

Source

pub const BOSNIAN: Self

Source

pub const BRETON: Self

Source

pub const BULGARIAN: Self

Source

pub const BURIAT: Self

Source

pub const BURMESE: Self

Source

pub const CANTONESE: Self

Source

pub const CARIAN: Self

Source

pub const CATALAN: Self

Source

pub const CEBUANO: Self

Source

pub const CENTRAL_ATLAS_TAMAZIGHT: Self

Source

pub const CENTRAL_KURDISH: Self

Source

pub const CHAKMA: Self

Source

pub const CHECHEN: Self

Source

pub const CHEROKEE: Self

Source

pub const CHIGA: Self

Source

pub const CHINESE: Self

Source

pub const CHURCH_SLAVIC: Self

Source

pub const CHUVASH: Self

Source

pub const CLASSICAL_MANDAIC: Self

Source

pub const COLOGNIAN: Self

Source

pub const COPTIC: Self

Source

pub const CORNISH: Self

Source

pub const CORSICAN: Self

Source

pub const CROATIAN: Self

Source

pub const CZECH: Self

Source

pub const DANISH: Self

Source

pub const DIVEHI: Self

Source

pub const DOGRI: Self

Source

pub const DUALA: Self

Source

pub const DUTCH: Self

Source

pub const DZONGKHA: Self

Source

pub const EGYPTIAN_ARABIC: Self

Source

pub const EMBU: Self

Source

pub const ENGLISH: Self

Source

pub const ERZYA: Self

Source

pub const ESPERANTO: Self

Source

pub const ESTONIAN: Self

Source

pub const ETRUSCAN: Self

Source

pub const EWE: Self

Source

pub const EWONDO: Self

Source

pub const FAROESE: Self

Source

pub const FILIPINO: Self

Source

pub const FINNISH: Self

Source

pub const FRENCH: Self

Source

pub const FRIULIAN: Self

Source

pub const FULAH: Self

Source

pub const GA: Self

Source

pub const GALICIAN: Self

Source

pub const GANDA: Self

Source

pub const GEEZ: Self

Source

pub const GEORGIAN: Self

Source

pub const GERMAN: Self

Source

pub const GOTHIC: Self

Source

pub const GREEK: Self

Source

pub const GUARANI: Self

Source

pub const GUJARATI: Self

Source

pub const GUSII: Self

Source

pub const HARYANVI: Self

Source

pub const HAUSA: Self

Source

pub const HAWAIIAN: Self

Source

pub const HEBREW: Self

Source

pub const HINDI: Self

Source

pub const HMONG_NJUA: Self

Source

pub const HUNGARIAN: Self

Source

pub const ICELANDIC: Self

Source

pub const IGBO: Self

Source

pub const INARI_SAMI: Self

Source

pub const INDONESIAN: Self

Source

pub const INGUSH: Self

Source

pub const INTERLINGUA: Self

Source

pub const INTERSLAVIC: Self

Source

pub const INUKTITUT: Self

Source

pub const IRISH: Self

Source

pub const ITALIAN: Self

Source

pub const JAPANESE: Self

Source

pub const JAVANESE: Self

Source

pub const JJU: Self

Source

pub const JOLA_FONYI: Self

Source

pub const KABUVERDIANU: Self

Source

pub const KABYLE: Self

Source

pub const KAINGANG: Self

Source

pub const KAKO: Self

Source

pub const KALAALLISUT: Self

Source

pub const KALENJIN: Self

Source

pub const KAMBA: Self

Source

pub const KANGRI: Self

Source

pub const KANNADA: Self

Source

pub const KASHMIRI: Self

Source

pub const KAZAKH: Self

Source

pub const KHMER: Self

Source

pub const KIKUYU: Self

Source

pub const KINYARWANDA: Self

Source

pub const KOMI: Self

Source

pub const KONKANI: Self

Source

pub const KOREAN: Self

Source

pub const KOYRABORO_SENNI: Self

Source

pub const KOYRA_CHIINI: Self

Source

pub const KURDISH: Self

Source

pub const KWASIO: Self

Source

pub const KYRGYZ: Self

Source

pub const LADINO: Self

Source

pub const LAKOTA: Self

Source

pub const LANGI: Self

Source

pub const LAO: Self

Source

pub const LATIN: Self

Source

pub const LATVIAN: Self

Source

pub const LEPCHA: Self

Source

pub const LIGURIAN: Self

Source

pub const LIMBU: Self

Source

pub const LINEAR_A: Self

Source

pub const LINGALA: Self

Source

pub const LITHUANIAN: Self

Source

pub const LOMBARD: Self

Source

pub const LOWER_SORBIAN: Self

Source

pub const LOW_GERMAN: Self

Source

pub const LUBA_KATANGA: Self

Source

pub const LUO: Self

Source

pub const LUXEMBOURGISH: Self

Source

pub const LUYIA: Self

Source

pub const LYCIAN: Self

Source

pub const LYDIAN: Self

Source

pub const LU: Self

Source

pub const MACEDONIAN: Self

Source

pub const MACHAME: Self

Source

pub const MAITHILI: Self

Source

pub const MAKASAR: Self

Source

pub const MAKHUWA_MEETTO: Self

Source

pub const MAKHUWA: Self

Source

pub const MAKONDE: Self

Source

pub const MALAGASY: Self

Source

pub const MALAY: Self

Source

pub const MALAYALAM: Self

Source

pub const MALTESE: Self

Source

pub const MANIPURI: Self

Source

pub const MANX: Self

Source

pub const MARATHI: Self

Source

pub const MASAI: Self

Source

pub const MAZANDERANI: Self

Source

pub const MERU: Self

Source

pub const METAʼ: Self

Source

pub const MONGOLIAN: Self

Source

pub const MORISYEN: Self

Source

pub const MUNDANG: Self

Source

pub const MUSCOGEE: Self

Source

pub const MAORI: Self

Source

pub const NAMA: Self

Source

pub const NAVAJO: Self

Source

pub const NEPALI: Self

Source

pub const NEWARI: Self

Source

pub const NGIEMBOON: Self

Source

pub const NGOMBA: Self

Source

pub const NHEENGATU: Self

Source

pub const NIGERIAN_PIDGIN: Self

Source

pub const NORTHERN_FRISIAN: Self

Source

pub const NORTHERN_KURDISH: Self

Source

pub const NORTHERN_LURI: Self

Source

pub const NORTHERN_SAMI: Self

Source

pub const NORTHERN_SOTHO: Self

Source

pub const NORTH_NDEBELE: Self

Source

pub const NORWEGIAN: Self

Source

pub const NORWEGIAN_BOKMAL: Self

Source

pub const NORWEGIAN_NYNORSK: Self

Source

pub const NUER: Self

Source

pub const NYANJA: Self

Source

pub const NYANKOLE: Self

Source

pub const NKO: Self

Source

pub const OCCITAN: Self

Source

pub const ODIA: Self

Source

pub const OLD_IRISH: Self

Source

pub const OLD_NORSE: Self

Source

pub const OLD_PERSIAN: Self

Source

pub const OLD_UIGHUR: Self

Source

pub const OROMO: Self

Source

pub const OSAGE: Self

Source

pub const OSSETIC: Self

Source

pub const PAPIAMENTO: Self

Source

pub const PASHTO: Self

Source

pub const PERSIAN: Self

Source

pub const PHOENICIAN: Self

Source

pub const PIEDMONTESE: Self

Source

pub const POLISH: Self

Source

pub const PORTUGUESE: Self

Source

pub const PRUSSIAN: Self

Source

pub const PUNJABI: Self

Source

pub const QUECHUA: Self

Source

pub const RAJASTHANI: Self

Source

pub const ROMANIAN: Self

Source

pub const ROMANSH: Self

Source

pub const ROMBO: Self

Source

pub const RUNDI: Self

Source

pub const RUSSIAN: Self

Source

pub const RWA: Self

Source

pub const SABAEAN: Self

Source

pub const SAHO: Self

Source

pub const SAKHA: Self

Source

pub const SAMARITAN: Self

Source

pub const SAMBURU: Self

Source

pub const SANGO: Self

Source

pub const SANGU: Self

Source

pub const SANSKRIT: Self

Source

pub const SANTALI: Self

Source

pub const SARAIKI: Self

Source

pub const SARDINIAN: Self

Source

pub const SCOTTISH_GAELIC: Self

Source

pub const SENA: Self

Source

pub const SERBIAN: Self

Source

pub const SHAMBALA: Self

Source

pub const SHONA: Self

Source

pub const SICHUAN_YI: Self

Source

pub const SICILIAN: Self

Source

pub const SILESIAN: Self

Source

pub const SINDHI: Self

Source

pub const SINHALA: Self

Source

pub const SINTE_ROMANI: Self

Source

pub const SLOVAK: Self

Source

pub const SLOVENIAN: Self

Source

pub const SOGA: Self

Source

pub const SOMALI: Self

Source

pub const SOUTHERN_ALTAI: Self

Source

pub const SOUTHERN_SOTHO: Self

Source

pub const SOUTH_NDEBELE: Self

Source

pub const SPANISH: Self

Source

pub const STANDARD_MOROCCAN_TAMAZIGHT: Self

Source

pub const SUNDANESE: Self

Source

pub const SWAHILI: Self

Source

pub const SWATI: Self

Source

pub const SWEDISH: Self

Source

pub const SWISS_GERMAN: Self

Source

pub const SYRIAC: Self

Source

pub const TACHELHIT: Self

Source

pub const TAITA: Self

Source

pub const TAI_NUA: Self

Source

pub const TAJIK: Self

Source

pub const TAMIL: Self

Source

pub const TANGUT: Self

Source

pub const TAROKO: Self

Source

pub const TASAWAQ: Self

Source

pub const TATAR: Self

Source

pub const TELUGU: Self

Source

pub const TESO: Self

Source

pub const THAI: Self

Source

pub const TIBETAN: Self

Source

pub const TIGRE: Self

Source

pub const TIGRINYA: Self

Source

pub const TOK_PISIN: Self

Source

pub const TONGAN: Self

Source

pub const TSONGA: Self

Source

pub const TSWANA: Self

Source

pub const TURKISH: Self

Source

pub const TURKMEN: Self

Source

pub const TYAP: Self

Source

pub const UGARITIC: Self

Source

pub const UKRAINIAN: Self

Source

pub const UNKNOWN_LANGUAGE: Self

Source

pub const UPPER_SORBIAN: Self

Source

pub const URDU: Self

Source

pub const UYGHUR: Self

Source

pub const UZBEK: Self

Source

pub const VAI: Self

Source

pub const VENDA: Self

Source

pub const VENETIAN: Self

Source

pub const VIETNAMESE: Self

Source

pub const VOLAPUK: Self

Source

pub const VUNJO: Self

Source

pub const WALSER: Self

Source

pub const WARAY: Self

Source

pub const WELSH: Self

Source

pub const WESTERN_FRISIAN: Self

Source

pub const WOLAYTTA: Self

Source

pub const WOLOF: Self

Source

pub const XHOSA: Self

Source

pub const YANGBEN: Self

Source

pub const YIDDISH: Self

Source

pub const YORUBA: Self

Source

pub const ZARMA: Self

Source

pub const ZHUANG: Self

Source

pub const ZULU: Self

Source

pub fn as_str(&self) -> &str

Return the language code as an all lowercase string slice.

Source

pub fn dir(self) -> Dir

The default direction for the language.

Trait Implementations§

Source§

impl Clone for Lang

Source§

fn clone(&self) -> Lang

Returns a duplicate 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 Debug for Lang

Source§

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

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

impl FromStr for Lang

Source§

fn from_str(iso: &str) -> Result<Self, Self::Err>

Construct a language from a two- or three-byte ISO 639-1/2/3 code.

Source§

type Err = &'static str

The associated error which can be returned from parsing.
Source§

impl FromValue for Lang

Source§

fn from_value(value: Value) -> HintedStrResult<Self>

Try to cast the value into an instance of Self.
Source§

impl Hash for Lang

Source§

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

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 IntoValue for Lang

Source§

fn into_value(self) -> Value

Cast this type into a value.
Source§

impl Ord for Lang

Source§

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

Source§

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

Source§

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

Source§

fn input() -> CastInfo

Describe what can be cast into this value.
Source§

fn output() -> CastInfo

Describe what this value can be cast into.
Source§

fn castable(value: &Value) -> bool

Whether the given value can be converted to T. Read more
Source§

fn error(found: &Value) -> HintedString

Produce an error message for an unacceptable value type. Read more
Source§

impl Copy for Lang

Source§

impl Eq for Lang

Source§

impl StructuralPartialEq for Lang

Auto Trait Implementations§

§

impl Freeze for Lang

§

impl RefUnwindSafe for Lang

§

impl Send for Lang

§

impl Sync for Lang

§

impl Unpin for Lang

§

impl UnwindSafe for Lang

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, D: AdaptFrom<S, Swp, Dwp, T>,

Source§

fn adapt_into_using<M>(self, method: M) -> D
where M: TransformMatrix<T>,

Convert the source color to the destination color using the specified method.
Source§

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default.
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, C> ArraysFrom<C> for T
where C: IntoArrays<T>,

Source§

fn arrays_from(colors: C) -> T

Cast a collection of colors into a collection of arrays.
Source§

impl<T, C> ArraysInto<C> for T
where C: FromArrays<T>,

Source§

fn arrays_into(self) -> C

Cast this collection of arrays into a collection of colors.
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<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for U
where T: FromCam16Unclamped<WpParam, U>,

Source§

type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<T, C> ComponentsFrom<C> for T
where C: IntoComponents<T>,

Source§

fn components_from(colors: C) -> T

Cast a collection of colors into a collection of color components.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromAngle<T> for T

Source§

fn from_angle(angle: T) -> T

Performs a conversion from angle.
Source§

impl<T, U> FromStimulus<U> for T
where U: IntoStimulus<T>,

Source§

fn from_stimulus(other: U) -> T

Converts other into Self, while performing the appropriate scaling, rounding and clamping.
Source§

impl<T> FromValue<Spanned<Value>> for T
where T: FromValue,

Source§

fn from_value(value: Spanned<Value>) -> Result<T, HintedString>

Try to cast the value into an instance of Self.
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, U> IntoAngle<U> for T
where U: FromAngle<T>,

Source§

fn into_angle(self) -> U

Performs a conversion into T.
Source§

impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for U
where T: Cam16FromUnclamped<WpParam, U>,

Source§

type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Source§

impl<T, U> IntoColor<U> for T
where U: FromColor<T>,

Source§

fn into_color(self) -> U

Convert into T with values clamped to the color defined bounds Read more
Source§

impl<T, U> IntoColorUnclamped<U> for T
where U: FromColorUnclamped<T>,

Source§

fn into_color_unclamped(self) -> U

Convert into T. The resulting color might be invalid in its color space Read more
Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoResult for T
where T: IntoValue,

Source§

fn into_result(self, _: Span) -> Result<Value, EcoVec<SourceDiagnostic>>

Cast this type into a value.
Source§

impl<T> IntoStimulus<T> for T

Source§

fn into_stimulus(self) -> T

Converts self into T, while performing the appropriate scaling, rounding and clamping.
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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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<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, C> TryComponentsInto<C> for T
where C: TryFromComponents<T>,

Source§

type Error = <C as TryFromComponents<T>>::Error

The error for when try_into_colors fails to cast.
Source§

fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>

Try to cast this collection of color components into a collection of colors. Read more
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, U> TryIntoColor<U> for T
where U: TryFromColor<T>,

Source§

fn try_into_color(self) -> Result<U, OutOfBounds<U>>

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
Source§

impl<C, U> UintsFrom<C> for U
where C: IntoUints<U>,

Source§

fn uints_from(colors: C) -> U

Cast a collection of colors into a collection of unsigned integers.
Source§

impl<C, U> UintsInto<C> for U
where C: FromUints<U>,

Source§

fn uints_into(self) -> C

Cast this collection of unsigned integers into a collection of colors.
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T
where T: Send + Sync,