Enum KnownHeaderName

Source
#[non_exhaustive]
#[repr(u8)]
pub enum KnownHeaderName {
Show 141 variants Host = 0, Date = 1, Accept = 2, AcceptCh = 3, AcceptChLifetime = 4, AcceptCharset = 5, AcceptEncoding = 6, AcceptLanguage = 7, AcceptPushPolicy = 8, AcceptRanges = 9, AcceptSignature = 10, AccessControlAllowCredentials = 11, AccessControlAllowHeaders = 12, AccessControlAllowMethods = 13, AccessControlAllowOrigin = 14, AccessControlExposeHeaders = 15, AccessControlMaxAge = 16, AccessControlRequestHeaders = 17, AccessControlRequestMethod = 18, Age = 19, Allow = 20, AltSvc = 21, Authorization = 22, CacheControl = 23, ClearSiteData = 24, Connection = 25, ContentDpr = 26, ContentDisposition = 27, ContentEncoding = 28, ContentLanguage = 29, ContentLength = 30, ContentLocation = 31, ContentRange = 32, ContentSecurityPolicy = 33, ContentSecurityPolicyReportOnly = 34, ContentType = 35, Cookie = 36, Cookie2 = 37, CrossOriginEmbedderPolicy = 38, CrossOriginOpenerPolicy = 39, CrossOriginResourcePolicy = 40, Dnt = 41, Dpr = 42, DeviceMemory = 43, Downlink = 44, Ect = 45, Etag = 46, EarlyData = 47, Expect = 48, ExpectCt = 49, Expires = 50, FeaturePolicy = 51, Forwarded = 52, From = 53, IfMatch = 54, IfModifiedSince = 55, IfNoneMatch = 56, IfRange = 57, IfUnmodifiedSince = 58, KeepAlive = 59, LargeAllocation = 60, LastEventId = 61, LastModified = 62, Link = 63, Location = 64, MaxForwards = 65, Nel = 66, Origin = 67, OriginIsolation = 68, PingFrom = 69, PingTo = 70, Pragma = 71, ProxyAuthenticate = 72, ProxyAuthorization = 73, ProxyConnection = 74, PublicKeyPins = 75, PublicKeyPinsReportOnly = 76, PushPolicy = 77, Rtt = 78, Range = 79, Referer = 80, ReferrerPolicy = 81, RefreshCache = 82, ReportTo = 83, RetryAfter = 84, SaveData = 85, SecChUa = 86, SecChUAMobile = 87, SecChUAPlatform = 88, SecFetchDest = 89, SecFetchMode = 90, SecFetchSite = 91, SecFetchUser = 92, SecGpc = 93, SecWebsocketAccept = 94, SecWebsocketExtensions = 95, SecWebsocketKey = 96, SecWebsocketProtocol = 97, SecWebsocketVersion = 98, Server = 99, ServerTiming = 100, ServiceWorkerAllowed = 101, SetCookie = 102, SetCookie2 = 103, Signature = 104, SignedHeaders = 105, Sourcemap = 106, StrictTransportSecurity = 107, Te = 108, TimingAllowOrigin = 109, Trailer = 110, TransferEncoding = 111, Upgrade = 112, UpgradeInsecureRequests = 113, UserAgent = 114, Vary = 115, Via = 116, ViewportWidth = 117, WwwAuthenticate = 118, Warning = 119, Width = 120, Xcache = 121, XcontentTypeOptions = 122, XdnsPrefetchControl = 123, XdownloadOptions = 124, XfirefoxSpdy = 125, XforwardedBy = 126, XforwardedFor = 127, XforwardedHost = 128, XforwardedProto = 129, XforwardedSsl = 130, XframeOptions = 131, XpermittedCrossDomainPolicies = 132, Xpingback = 133, XpoweredBy = 134, XrequestId = 135, XrequestedWith = 136, XrobotsTag = 137, XservedBy = 138, XuaCompatible = 139, XxssProtection = 140,
}
Expand description

A short nonehaustive enum of headers that trillium can represent as a u8. Use a KnownHeaderName variant instead of a &’static str anywhere possible, as it allows trillium to skip parsing the header entirely.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Host = 0

The Host header.

§

Date = 1

The Date header.

§

Accept = 2

The Accept header.

§

AcceptCh = 3

The Accept-CH header.

§

AcceptChLifetime = 4

The Accept-CH-Lifetime header.

§

AcceptCharset = 5

The Accept-Charset header.

§

AcceptEncoding = 6

The Accept-Encoding header.

§

AcceptLanguage = 7

The Accept-Language header.

§

AcceptPushPolicy = 8

The Accept-Push-Policy header.

§

AcceptRanges = 9

The Accept-Ranges header.

§

AcceptSignature = 10

The Accept-Signature header.

§

AccessControlAllowCredentials = 11

§

AccessControlAllowHeaders = 12

§

AccessControlAllowMethods = 13

§

AccessControlAllowOrigin = 14

§

AccessControlExposeHeaders = 15

§

AccessControlMaxAge = 16

§

AccessControlRequestHeaders = 17

§

AccessControlRequestMethod = 18

§

Age = 19

The Age header.

§

Allow = 20

The Allow header.

§

AltSvc = 21

The Alt-Svc header.

§

Authorization = 22

The Authorization header.

§

CacheControl = 23

The Cache-Control header.

§

ClearSiteData = 24

The Clear-Site-Data header.

§

Connection = 25

The Connection header.

§

ContentDpr = 26

The Content-DPR header.

§

ContentDisposition = 27

The Content-Disposition header.

§

ContentEncoding = 28

The Content-Encoding header.

§

ContentLanguage = 29

The Content-Language header.

§

ContentLength = 30

The Content-Length header.

§

ContentLocation = 31

The Content-Location header.

§

ContentRange = 32

The Content-Range header.

§

ContentSecurityPolicy = 33

§

ContentSecurityPolicyReportOnly = 34

§

ContentType = 35

The Content-Type header.

§

Cookie = 36

The Cookie header.

§

Cookie2 = 37

The Cookie2 header.

§

CrossOriginEmbedderPolicy = 38

§

CrossOriginOpenerPolicy = 39

§

CrossOriginResourcePolicy = 40

§

Dnt = 41

The DNT header.

§

Dpr = 42

The DPR header.

§

DeviceMemory = 43

The Device-Memory header.

The Downlink header.

§

Ect = 45

The ECT header.

§

Etag = 46

The ETag header.

§

EarlyData = 47

The Early-Data header.

§

Expect = 48

The Expect header.

§

ExpectCt = 49

The Expect-CT header.

§

Expires = 50

The Expires header.

§

FeaturePolicy = 51

The Feature-Policy header.

§

Forwarded = 52

The Forwarded header.

§

From = 53

The From header.

§

IfMatch = 54

The If-Match header.

§

IfModifiedSince = 55

The If-Modified-Since header.

§

IfNoneMatch = 56

The If-None-Match header.

§

IfRange = 57

The If-Range header.

§

IfUnmodifiedSince = 58

The If-Unmodified-Since header.

§

KeepAlive = 59

The Keep-Alive header.

§

LargeAllocation = 60

The Large-Allocation header.

§

LastEventId = 61

The Last-Event-ID header.

§

LastModified = 62

The Last-Modified header.

The Link header.

§

Location = 64

The Location header.

§

MaxForwards = 65

The Max-Forwards header.

§

Nel = 66

The NEL header.

§

Origin = 67

The Origin header.

§

OriginIsolation = 68

The Origin-Isolation header.

§

PingFrom = 69

The Ping-From header.

§

PingTo = 70

The Ping-To header.

§

Pragma = 71

The Pragma header.

§

ProxyAuthenticate = 72

The Proxy-Authenticate header.

§

ProxyAuthorization = 73

The Proxy-Authorization header.

§

ProxyConnection = 74

The Proxy-Connection header.

§

PublicKeyPins = 75

The Public-Key-Pins header.

§

PublicKeyPinsReportOnly = 76

§

PushPolicy = 77

The Push-Policy header.

§

Rtt = 78

The RTT header.

§

Range = 79

The Range header.

§

Referer = 80

The Referer header.

§

ReferrerPolicy = 81

The Referrer-Policy header.

§

RefreshCache = 82

The Refresh-Cache header.

§

ReportTo = 83

The Report-To header.

§

RetryAfter = 84

The Retry-After header.

§

SaveData = 85

The Save-Data header.

§

SecChUa = 86

The Sec-CH-UA header.

§

SecChUAMobile = 87

The Sec-CH-UA-Mobile header.

§

SecChUAPlatform = 88

The Sec-CH-UA-Platform header.

§

SecFetchDest = 89

The Sec-Fetch-Dest header.

§

SecFetchMode = 90

The Sec-Fetch-Mode header.

§

SecFetchSite = 91

The Sec-Fetch-Site header.

§

SecFetchUser = 92

The Sec-Fetch-User header.

§

SecGpc = 93

The Sec-GPC header.

§

SecWebsocketAccept = 94

§

SecWebsocketExtensions = 95

§

SecWebsocketKey = 96

The Sec-WebSocket-Key header.

§

SecWebsocketProtocol = 97

§

SecWebsocketVersion = 98

§

Server = 99

The Server header.

§

ServerTiming = 100

The Server-Timing header.

§

ServiceWorkerAllowed = 101

§

SetCookie = 102

The Set-Cookie header.

§

SetCookie2 = 103

The Set-Cookie2 header.

§

Signature = 104

The Signature header.

§

SignedHeaders = 105

The Signed-Headers header.

§

Sourcemap = 106

The SourceMap header.

§

StrictTransportSecurity = 107

§

Te = 108

The TE header.

§

TimingAllowOrigin = 109

The Timing-Allow-Origin header.

§

Trailer = 110

The Trailer header.

§

TransferEncoding = 111

The Transfer-Encoding header.

§

Upgrade = 112

The Upgrade header.

§

UpgradeInsecureRequests = 113

§

UserAgent = 114

The User-Agent header.

§

Vary = 115

The Vary header.

§

Via = 116

The Via header.

§

ViewportWidth = 117

The Viewport-Width header.

§

WwwAuthenticate = 118

The WWW-Authenticate header.

§

Warning = 119

The Warning header.

§

Width = 120

The Width header.

§

Xcache = 121

The X-Cache header.

§

XcontentTypeOptions = 122

§

XdnsPrefetchControl = 123

§

XdownloadOptions = 124

The X-Download-Options header.

§

XfirefoxSpdy = 125

The X-Firefox-Spdy header.

§

XforwardedBy = 126

The X-Forwarded-By header.

§

XforwardedFor = 127

The X-Forwarded-For header.

§

XforwardedHost = 128

The X-Forwarded-Host header.

§

XforwardedProto = 129

The X-Forwarded-Proto header.

§

XforwardedSsl = 130

The X-Forwarded-SSL header.

§

XframeOptions = 131

The X-Frame-Options header.

§

XpermittedCrossDomainPolicies = 132

§

Xpingback = 133

The X-Pingback header.

§

XpoweredBy = 134

The X-Powered-By header.

§

XrequestId = 135

The X-Request-Id header.

§

XrequestedWith = 136

The X-Requested-With header.

§

XrobotsTag = 137

The X-Robots-Tag header.

§

XservedBy = 138

The X-Served-By header.

§

XuaCompatible = 139

The X-UA-Compatible header.

§

XxssProtection = 140

The X-XSS-Protection header.

Trait Implementations§

Source§

impl AsRef<str> for KnownHeaderName

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for KnownHeaderName

Source§

fn clone(&self) -> KnownHeaderName

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 Debug for KnownHeaderName

Source§

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

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

impl Display for KnownHeaderName

Source§

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

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

impl FromStr for KnownHeaderName

Source§

type Err = ()

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

fn from_str( s: &str, ) -> Result<KnownHeaderName, <KnownHeaderName as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for KnownHeaderName

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 PartialEq<HeaderName<'_>> for KnownHeaderName

Source§

fn eq(&self, other: &HeaderName<'_>) -> 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 PartialEq for KnownHeaderName

Source§

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

Source§

impl Eq for KnownHeaderName

Source§

impl StructuralPartialEq for KnownHeaderName

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

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. 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

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

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. 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<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> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
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<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. 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> 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