pub trait AsRef<T>where
T: ?Sized,{
// Required method
fn as_ref(&self) -> &T;
}
Expand description
Used to do a cheap reference-to-reference conversion.
This trait is similar to AsMut
which is used for converting between mutable references.
If you need to do a costly conversion it is better to implement From
with type
&T
or write a custom function.
ยงRelation to Borrow
AsRef
has the same signature as Borrow
, but Borrow
is different in a few aspects:
- Unlike
AsRef
,Borrow
has a blanket impl for anyT
, and can be used to accept either a reference or a value. (See also note onAsRef
โs reflexibility below.) Borrow
also requires thatHash
,Eq
andOrd
for a borrowed value are equivalent to those of the owned value. For this reason, if you want to borrow only a single field of a struct you can implementAsRef
, but notBorrow
.
Note: This trait must not fail. If the conversion can fail, use a
dedicated method which returns an Option<T>
or a Result<T, E>
.
ยงGeneric Implementations
AsRef
auto-dereferences if the inner type is a reference or a mutable reference
(e.g.: foo.as_ref()
will work the same if foo
has type &mut Foo
or &&mut Foo
).
Note that due to historic reasons, the above currently does not hold generally for all
dereferenceable types, e.g. foo.as_ref()
will not work the same as
Box::new(foo).as_ref()
. Instead, many smart pointers provide an as_ref
implementation which
simply returns a reference to the pointed-to value (but do not perform a cheap
reference-to-reference conversion for that value). However, AsRef::as_ref
should not be
used for the sole purpose of dereferencing; instead โDeref
coercionโ can be used:
let x = Box::new(5i32);
// Avoid this:
// let y: &i32 = x.as_ref();
// Better just write:
let y: &i32 = &x;
Types which implement Deref
should consider implementing AsRef<T>
as follows:
impl<T> AsRef<T> for SomeType
where
T: ?Sized,
<SomeType as Deref>::Target: AsRef<T>,
{
fn as_ref(&self) -> &T {
self.deref().as_ref()
}
}
ยงReflexivity
Ideally, AsRef
would be reflexive, i.e. there would be an impl<T: ?Sized> AsRef<T> for T
with as_ref
simply returning its argument unchanged.
Such a blanket implementation is currently not provided due to technical restrictions of
Rustโs type system (it would be overlapping with another existing blanket implementation for
&T where T: AsRef<U>
which allows AsRef
to auto-dereference, see โGeneric Implementationsโ
above).
A trivial implementation of AsRef<T> for T
must be added explicitly for a particular type T
where needed or desired. Note, however, that not all types from std
contain such an
implementation, and those cannot be added by external code due to orphan rules.
ยงExamples
By using trait bounds we can accept arguments of different types as long as they can be
converted to the specified type T
.
For example: By creating a generic function that takes an AsRef<str>
we express that we
want to accept all references that can be converted to &str
as an argument.
Since both String
and &str
implement AsRef<str>
we can accept both as input argument.
fn is_hello<T: AsRef<str>>(s: T) {
assert_eq!("hello", s.as_ref());
}
let s = "hello";
is_hello(s);
let s = "hello".to_string();
is_hello(s);
Required Methodsยง
Implementorsยง
impl AsRef<str> for CowStr
impl AsRef<str> for str
impl AsRef<str> for ArchiveId
impl AsRef<str> for BaseURI
impl AsRef<str> for NameStep
impl AsRef<str> for HeaderName
impl AsRef<str> for Method
impl AsRef<str> for Authority
impl AsRef<str> for Scheme
impl AsRef<str> for String
impl AsRef<str> for Mime
impl AsRef<str> for OpensslString
impl AsRef<str> for OpensslStringRef
impl AsRef<str> for url::Url
Return the serialization of this URL.
impl AsRef<str> for Algorithm
impl AsRef<str> for ArchivedString
impl AsRef<str> for BasicErrorResponseType
impl AsRef<str> for BasicTokenType
impl AsRef<str> for DeviceCodeErrorResponseType
impl AsRef<str> for DnsName<'_>
impl AsRef<str> for Field
impl AsRef<str> for Iter<'_>
impl AsRef<str> for PasswordHashString
impl AsRef<str> for RequestUrl
impl AsRef<str> for ResolvedStaticPath
impl AsRef<str> for RevocationErrorResponseType
impl AsRef<str> for SaltString
impl AsRef<str> for Scope
impl AsRef<str> for UriTemplateStr
impl AsRef<str> for UriTemplateString
impl AsRef<str> for Utf8Bytes
impl AsRef<str> for Utf8Component<'_>
impl AsRef<str> for Utf8Components<'_>
impl AsRef<str> for Utf8Path
impl AsRef<str> for Utf8PathBuf
impl AsRef<Notation> for Notation
impl AsRef<BuildArtifactType> for BuildArtifactTypeId
impl AsRef<BuildTarget> for BuildTargetId
impl AsRef<FLAMSExtension> for FLAMSExtensionId
impl AsRef<SourceFormat> for SourceFormatId
impl AsRef<Bytes> for Utf8Bytes
impl AsRef<ByteStr> for str
impl AsRef<ByteStr> for ByteStr
impl AsRef<ByteStr> for ByteString
impl AsRef<CStr> for CStr
impl AsRef<CStr> for CString
impl AsRef<CStr> for ArchivedCString
impl AsRef<LocalWaker> for Waker
impl AsRef<OsStr> for Component<'_>
impl AsRef<OsStr> for str
impl AsRef<OsStr> for String
impl AsRef<OsStr> for OsStr
impl AsRef<OsStr> for OsString
impl AsRef<OsStr> for Components<'_>
impl AsRef<OsStr> for std::path::Iter<'_>
impl AsRef<OsStr> for Path
impl AsRef<OsStr> for PathBuf
impl AsRef<OsStr> for TempPath
impl AsRef<OsStr> for Iter<'_>
impl AsRef<OsStr> for Utf8Component<'_>
impl AsRef<OsStr> for Utf8Components<'_>
impl AsRef<OsStr> for Utf8Path
impl AsRef<OsStr> for Utf8PathBuf
impl AsRef<Path> for Oco<'_, str>
impl AsRef<Path> for Oco<'_, OsStr>
impl AsRef<Path> for Cow<'_, OsStr>
impl AsRef<Path> for Component<'_>
impl AsRef<Path> for str
impl AsRef<Path> for String
impl AsRef<Path> for OsStr
impl AsRef<Path> for OsString
impl AsRef<Path> for Components<'_>
impl AsRef<Path> for std::path::Iter<'_>
impl AsRef<Path> for Path
impl AsRef<Path> for PathBuf
impl AsRef<Path> for TempDir
impl AsRef<Path> for TempPath
impl AsRef<Path> for DecInt
impl AsRef<Path> for Iter<'_>
impl AsRef<Path> for Utf8Component<'_>
impl AsRef<Path> for Utf8Components<'_>
impl AsRef<Path> for Utf8Path
impl AsRef<Path> for Utf8PathBuf
impl AsRef<DateTime<Utc>> for HookDate
impl AsRef<Collator> for Collator
impl AsRef<DateTimeFormat> for DateTimeFormat
impl AsRef<NumberFormat> for NumberFormat
impl AsRef<PluralRules> for PluralRules
impl AsRef<RelativeTimeFormat> for RelativeTimeFormat
impl AsRef<CompileError> for CompileError
impl AsRef<Exception> for Exception
impl AsRef<Global> for Global
impl AsRef<Instance> for Instance
impl AsRef<LinkError> for LinkError
impl AsRef<Memory> for Memory
impl AsRef<Module> for Module
impl AsRef<RuntimeError> for RuntimeError
impl AsRef<Table> for Table
impl AsRef<Tag> for js_sys::WebAssembly::Tag
impl AsRef<Array> for Array
impl AsRef<ArrayBuffer> for ArrayBuffer
impl AsRef<AsyncIterator> for AsyncIterator
impl AsRef<BigInt64Array> for BigInt64Array
impl AsRef<BigInt> for BigInt
impl AsRef<BigUint64Array> for BigUint64Array
impl AsRef<Boolean> for Boolean
impl AsRef<DataView> for DataView
impl AsRef<Date> for Date
impl AsRef<Error> for CompileError
impl AsRef<Error> for LinkError
impl AsRef<Error> for RuntimeError
impl AsRef<Error> for js_sys::Error
impl AsRef<Error> for EvalError
impl AsRef<Error> for RangeError
impl AsRef<Error> for ReferenceError
impl AsRef<Error> for SyntaxError
impl AsRef<Error> for TypeError
impl AsRef<Error> for UriError
impl AsRef<EvalError> for EvalError
impl AsRef<Float32Array> for Float32Array
impl AsRef<Float64Array> for Float64Array
impl AsRef<Function> for Function
impl AsRef<Generator> for Generator
impl AsRef<Int8Array> for Int8Array
impl AsRef<Int16Array> for Int16Array
impl AsRef<Int32Array> for Int32Array
impl AsRef<Iterator> for Iterator
impl AsRef<IteratorNext> for IteratorNext
impl AsRef<JsString> for JsString
impl AsRef<Map> for js_sys::Map
impl AsRef<Number> for Number
impl AsRef<Object> for Collator
impl AsRef<Object> for DateTimeFormat
impl AsRef<Object> for NumberFormat
impl AsRef<Object> for PluralRules
impl AsRef<Object> for RelativeTimeFormat
impl AsRef<Object> for Exception
impl AsRef<Object> for Global
impl AsRef<Object> for Instance
impl AsRef<Object> for Memory
impl AsRef<Object> for Module
impl AsRef<Object> for Table
impl AsRef<Object> for js_sys::WebAssembly::Tag
impl AsRef<Object> for Array
impl AsRef<Object> for ArrayBuffer
impl AsRef<Object> for BigInt64Array
impl AsRef<Object> for BigInt
impl AsRef<Object> for BigUint64Array
impl AsRef<Object> for Boolean
impl AsRef<Object> for DataView
impl AsRef<Object> for Date
impl AsRef<Object> for js_sys::Error
impl AsRef<Object> for EvalError
impl AsRef<Object> for Float32Array
impl AsRef<Object> for Float64Array
impl AsRef<Object> for Function
impl AsRef<Object> for Generator
impl AsRef<Object> for Int8Array
impl AsRef<Object> for Int16Array
impl AsRef<Object> for Int32Array
impl AsRef<Object> for IteratorNext
impl AsRef<Object> for JsString
impl AsRef<Object> for js_sys::Map
impl AsRef<Object> for Number
impl AsRef<Object> for Object
impl AsRef<Object> for Promise
impl AsRef<Object> for RangeError
impl AsRef<Object> for ReferenceError
impl AsRef<Object> for RegExp
impl AsRef<Object> for Set
impl AsRef<Object> for SyntaxError
impl AsRef<Object> for TypeError
impl AsRef<Object> for Uint8Array
impl AsRef<Object> for Uint8ClampedArray
impl AsRef<Object> for Uint16Array
impl AsRef<Object> for Uint32Array
impl AsRef<Object> for UriError
impl AsRef<Object> for WeakMap
impl AsRef<Object> for WeakSet
impl AsRef<Object> for AbortController
impl AsRef<Object> for AbortSignal
impl AsRef<Object> for AddEventListenerOptions
impl AsRef<Object> for AnimationEvent
impl AsRef<Object> for BeforeUnloadEvent
impl AsRef<Object> for Blob
impl AsRef<Object> for CharacterData
impl AsRef<Object> for ClipboardEvent
impl AsRef<Object> for CloseEvent
impl AsRef<Object> for CloseEventInit
impl AsRef<Object> for Comment
impl AsRef<Object> for CompositionEvent
impl AsRef<Object> for CssStyleDeclaration
impl AsRef<Object> for CustomEvent
impl AsRef<Object> for DataTransfer
impl AsRef<Object> for DeviceMotionEvent
impl AsRef<Object> for DeviceOrientationEvent
impl AsRef<Object> for web_sys::features::gen_Document::Document
impl AsRef<Object> for DocumentFragment
impl AsRef<Object> for DomRect
impl AsRef<Object> for DomRectReadOnly
impl AsRef<Object> for DomStringMap
impl AsRef<Object> for DomTokenList
impl AsRef<Object> for DragEvent
impl AsRef<Object> for Element
impl AsRef<Object> for ErrorEvent
impl AsRef<Object> for web_sys::features::gen_Event::Event
impl AsRef<Object> for EventSource
impl AsRef<Object> for EventTarget
impl AsRef<Object> for File
impl AsRef<Object> for FileList
impl AsRef<Object> for FileReader
impl AsRef<Object> for FocusEvent
impl AsRef<Object> for FormData
impl AsRef<Object> for GamepadEvent
impl AsRef<Object> for HashChangeEvent
impl AsRef<Object> for Headers
impl AsRef<Object> for History
impl AsRef<Object> for HtmlAnchorElement
impl AsRef<Object> for HtmlAreaElement
impl AsRef<Object> for HtmlAudioElement
impl AsRef<Object> for HtmlBaseElement
impl AsRef<Object> for HtmlBodyElement
impl AsRef<Object> for HtmlBrElement
impl AsRef<Object> for HtmlButtonElement
impl AsRef<Object> for HtmlCanvasElement
impl AsRef<Object> for HtmlCollection
impl AsRef<Object> for HtmlDListElement
impl AsRef<Object> for HtmlDataElement
impl AsRef<Object> for HtmlDataListElement
impl AsRef<Object> for HtmlDetailsElement
impl AsRef<Object> for HtmlDialogElement
impl AsRef<Object> for HtmlDivElement
impl AsRef<Object> for HtmlElement
impl AsRef<Object> for HtmlEmbedElement
impl AsRef<Object> for HtmlFieldSetElement
impl AsRef<Object> for HtmlFormElement
impl AsRef<Object> for HtmlHeadElement
impl AsRef<Object> for HtmlHeadingElement
impl AsRef<Object> for HtmlHrElement
impl AsRef<Object> for HtmlHtmlElement
impl AsRef<Object> for HtmlIFrameElement
impl AsRef<Object> for HtmlImageElement
impl AsRef<Object> for HtmlInputElement
impl AsRef<Object> for HtmlLabelElement
impl AsRef<Object> for HtmlLegendElement
impl AsRef<Object> for HtmlLiElement
impl AsRef<Object> for HtmlLinkElement
impl AsRef<Object> for HtmlMapElement
impl AsRef<Object> for HtmlMediaElement
impl AsRef<Object> for HtmlMenuElement
impl AsRef<Object> for HtmlMetaElement
impl AsRef<Object> for HtmlMeterElement
impl AsRef<Object> for HtmlModElement
impl AsRef<Object> for HtmlOListElement
impl AsRef<Object> for HtmlObjectElement
impl AsRef<Object> for HtmlOptGroupElement
impl AsRef<Object> for HtmlOptionElement
impl AsRef<Object> for HtmlOutputElement
impl AsRef<Object> for HtmlParagraphElement
impl AsRef<Object> for HtmlParamElement
impl AsRef<Object> for HtmlPictureElement
impl AsRef<Object> for HtmlPreElement
impl AsRef<Object> for HtmlProgressElement
impl AsRef<Object> for HtmlQuoteElement
impl AsRef<Object> for HtmlScriptElement
impl AsRef<Object> for HtmlSelectElement
impl AsRef<Object> for HtmlSlotElement
impl AsRef<Object> for HtmlSourceElement
impl AsRef<Object> for HtmlSpanElement
impl AsRef<Object> for HtmlStyleElement
impl AsRef<Object> for HtmlTableCaptionElement
impl AsRef<Object> for HtmlTableCellElement
impl AsRef<Object> for HtmlTableColElement
impl AsRef<Object> for HtmlTableElement
impl AsRef<Object> for HtmlTableRowElement
impl AsRef<Object> for HtmlTableSectionElement
impl AsRef<Object> for HtmlTemplateElement
impl AsRef<Object> for HtmlTextAreaElement
impl AsRef<Object> for HtmlTimeElement
impl AsRef<Object> for HtmlTitleElement
impl AsRef<Object> for HtmlTrackElement
impl AsRef<Object> for HtmlUListElement
impl AsRef<Object> for HtmlVideoElement
impl AsRef<Object> for InputEvent
impl AsRef<Object> for KeyboardEvent
impl AsRef<Object> for Location
impl AsRef<Object> for MessageEvent
impl AsRef<Object> for MouseEvent
impl AsRef<Object> for MutationObserver
impl AsRef<Object> for MutationObserverInit
impl AsRef<Object> for MutationRecord
impl AsRef<Object> for Node
impl AsRef<Object> for NodeFilter
impl AsRef<Object> for NodeList
impl AsRef<Object> for ObserverCallback
impl AsRef<Object> for PageTransitionEvent
impl AsRef<Object> for PointerEvent
impl AsRef<Object> for PopStateEvent
impl AsRef<Object> for ProgressEvent
impl AsRef<Object> for PromiseRejectionEvent
impl AsRef<Object> for QueuingStrategy
impl AsRef<Object> for ReadableByteStreamController
impl AsRef<Object> for ReadableStream
impl AsRef<Object> for ReadableStreamByobReader
impl AsRef<Object> for ReadableStreamByobRequest
impl AsRef<Object> for ReadableStreamDefaultController
impl AsRef<Object> for ReadableStreamDefaultReader
impl AsRef<Object> for ReadableStreamGetReaderOptions
impl AsRef<Object> for ReadableStreamReadResult
impl AsRef<Object> for ReadableWritablePair
impl AsRef<Object> for Request
impl AsRef<Object> for RequestInit
impl AsRef<Object> for Response
impl AsRef<Object> for ResponseInit
impl AsRef<Object> for ScrollIntoViewOptions
impl AsRef<Object> for ScrollToOptions
impl AsRef<Object> for SecurityPolicyViolationEvent
impl AsRef<Object> for ShadowRoot
impl AsRef<Object> for ShadowRootInit
impl AsRef<Object> for Storage
impl AsRef<Object> for StorageEvent
impl AsRef<Object> for StreamPipeOptions
impl AsRef<Object> for SubmitEvent
impl AsRef<Object> for SvgElement
impl AsRef<Object> for Text
impl AsRef<Object> for TouchEvent
impl AsRef<Object> for TransformStream
impl AsRef<Object> for TransformStreamDefaultController
impl AsRef<Object> for Transformer
impl AsRef<Object> for TransitionEvent
impl AsRef<Object> for TreeWalker
impl AsRef<Object> for UiEvent
impl AsRef<Object> for UnderlyingSink
impl AsRef<Object> for UnderlyingSource
impl AsRef<Object> for web_sys::features::gen_Url::Url
impl AsRef<Object> for UrlSearchParams
impl AsRef<Object> for WebSocket
impl AsRef<Object> for WheelEvent
impl AsRef<Object> for web_sys::features::gen_Window::Window
impl AsRef<Object> for WritableStream
impl AsRef<Object> for WritableStreamDefaultController
impl AsRef<Object> for WritableStreamDefaultWriter
impl AsRef<Promise> for Promise
impl AsRef<Proxy> for Proxy
impl AsRef<RangeError> for RangeError
impl AsRef<ReferenceError> for ReferenceError
impl AsRef<RegExp> for RegExp
impl AsRef<Set> for Set
impl AsRef<Symbol> for Symbol
impl AsRef<SyntaxError> for SyntaxError
impl AsRef<TypeError> for TypeError
impl AsRef<Uint8Array> for Uint8Array
impl AsRef<Uint8ClampedArray> for Uint8ClampedArray
impl AsRef<Uint16Array> for Uint16Array
impl AsRef<Uint32Array> for Uint32Array
impl AsRef<UriError> for UriError
impl AsRef<WeakMap> for WeakMap
impl AsRef<WeakSet> for WeakSet
impl AsRef<Asn1BitStringRef> for Asn1BitString
impl AsRef<Asn1EnumeratedRef> for Asn1Enumerated
impl AsRef<Asn1GeneralizedTimeRef> for Asn1GeneralizedTime
impl AsRef<Asn1IntegerRef> for Asn1Integer
impl AsRef<Asn1ObjectRef> for Asn1Object
impl AsRef<Asn1OctetStringRef> for Asn1OctetString
impl AsRef<Asn1StringRef> for Asn1String
impl AsRef<Asn1TimeRef> for Asn1Time
impl AsRef<BigNumContextRef> for BigNumContext
impl AsRef<BigNumRef> for BigNum
impl AsRef<CipherCtxRef> for CipherCtx
impl AsRef<CmsContentInfoRef> for CmsContentInfo
impl AsRef<ConfRef> for Conf
impl AsRef<DsaSigRef> for DsaSig
impl AsRef<EcGroupRef> for EcGroup
impl AsRef<EcPointRef> for EcPoint
impl AsRef<EcdsaSigRef> for EcdsaSig
impl AsRef<LibCtxRef> for LibCtx
impl AsRef<MdCtxRef> for MdCtx
impl AsRef<OcspBasicResponseRef> for OcspBasicResponse
impl AsRef<OcspCertIdRef> for OcspCertId
impl AsRef<OcspOneReqRef> for OcspOneReq
impl AsRef<OcspRequestRef> for OcspRequest
impl AsRef<OcspResponseRef> for OcspResponse
impl AsRef<Pkcs7Ref> for Pkcs7
impl AsRef<Pkcs7SignedRef> for Pkcs7Signed
impl AsRef<Pkcs7SignerInfoRef> for Pkcs7SignerInfo
impl AsRef<Pkcs12Ref> for Pkcs12
impl AsRef<ProviderRef> for Provider
impl AsRef<SrtpProtectionProfileRef> for SrtpProtectionProfile
impl AsRef<SslContextRef> for SslContext
impl AsRef<SslRef> for Ssl
impl AsRef<SslSessionRef> for SslSession
impl AsRef<OpensslStringRef> for OpensslString
impl AsRef<X509StoreBuilderRef> for X509StoreBuilder
impl AsRef<X509StoreRef> for X509Store
impl AsRef<AccessDescriptionRef> for AccessDescription
impl AsRef<DistPointNameRef> for DistPointName
impl AsRef<DistPointRef> for DistPoint
impl AsRef<GeneralNameRef> for GeneralName
impl AsRef<X509AlgorithmRef> for X509Algorithm
impl AsRef<X509CrlRef> for X509Crl
impl AsRef<X509ExtensionRef> for X509Extension
impl AsRef<X509NameEntryRef> for X509NameEntry
impl AsRef<X509NameRef> for X509Name
impl AsRef<X509ObjectRef> for X509Object
impl AsRef<X509Ref> for X509
impl AsRef<X509Ref> for X509Ref
impl AsRef<X509ReqRef> for X509Req
impl AsRef<X509RevokedRef> for X509Revoked
impl AsRef<X509StoreContextRef> for X509StoreContext
impl AsRef<X509VerifyParamRef> for X509VerifyParam
impl AsRef<Uuid> for Braced
impl AsRef<Uuid> for Hyphenated
impl AsRef<Uuid> for Simple
impl AsRef<Uuid> for Urn
impl AsRef<Uuid> for Uuid
impl AsRef<JsValue> for Collator
impl AsRef<JsValue> for DateTimeFormat
impl AsRef<JsValue> for NumberFormat
impl AsRef<JsValue> for PluralRules
impl AsRef<JsValue> for RelativeTimeFormat
impl AsRef<JsValue> for CompileError
impl AsRef<JsValue> for Exception
impl AsRef<JsValue> for Global
impl AsRef<JsValue> for Instance
impl AsRef<JsValue> for LinkError
impl AsRef<JsValue> for Memory
impl AsRef<JsValue> for Module
impl AsRef<JsValue> for RuntimeError
impl AsRef<JsValue> for Table
impl AsRef<JsValue> for js_sys::WebAssembly::Tag
impl AsRef<JsValue> for Array
impl AsRef<JsValue> for ArrayBuffer
impl AsRef<JsValue> for AsyncIterator
impl AsRef<JsValue> for BigInt64Array
impl AsRef<JsValue> for BigInt
impl AsRef<JsValue> for BigUint64Array
impl AsRef<JsValue> for Boolean
impl AsRef<JsValue> for DataView
impl AsRef<JsValue> for Date
impl AsRef<JsValue> for js_sys::Error
impl AsRef<JsValue> for EvalError
impl AsRef<JsValue> for Float32Array
impl AsRef<JsValue> for Float64Array
impl AsRef<JsValue> for Function
impl AsRef<JsValue> for Generator
impl AsRef<JsValue> for Int8Array
impl AsRef<JsValue> for Int16Array
impl AsRef<JsValue> for Int32Array
impl AsRef<JsValue> for Iterator
impl AsRef<JsValue> for IteratorNext
impl AsRef<JsValue> for JsString
impl AsRef<JsValue> for js_sys::Map
impl AsRef<JsValue> for Number
impl AsRef<JsValue> for Object
impl AsRef<JsValue> for Promise
impl AsRef<JsValue> for Proxy
impl AsRef<JsValue> for RangeError
impl AsRef<JsValue> for ReferenceError
impl AsRef<JsValue> for RegExp
impl AsRef<JsValue> for Set
impl AsRef<JsValue> for Symbol
impl AsRef<JsValue> for SyntaxError
impl AsRef<JsValue> for TypeError
impl AsRef<JsValue> for Uint8Array
impl AsRef<JsValue> for Uint8ClampedArray
impl AsRef<JsValue> for Uint16Array
impl AsRef<JsValue> for Uint32Array
impl AsRef<JsValue> for UriError
impl AsRef<JsValue> for WeakMap
impl AsRef<JsValue> for WeakSet
impl AsRef<JsValue> for JsValue
impl AsRef<JsValue> for AbortController
impl AsRef<JsValue> for AbortSignal
impl AsRef<JsValue> for AddEventListenerOptions
impl AsRef<JsValue> for AnimationEvent
impl AsRef<JsValue> for BeforeUnloadEvent
impl AsRef<JsValue> for Blob
impl AsRef<JsValue> for CharacterData
impl AsRef<JsValue> for ClipboardEvent
impl AsRef<JsValue> for CloseEvent
impl AsRef<JsValue> for CloseEventInit
impl AsRef<JsValue> for Comment
impl AsRef<JsValue> for CompositionEvent
impl AsRef<JsValue> for CssStyleDeclaration
impl AsRef<JsValue> for CustomEvent
impl AsRef<JsValue> for DataTransfer
impl AsRef<JsValue> for DeviceMotionEvent
impl AsRef<JsValue> for DeviceOrientationEvent
impl AsRef<JsValue> for web_sys::features::gen_Document::Document
impl AsRef<JsValue> for DocumentFragment
impl AsRef<JsValue> for DomRect
impl AsRef<JsValue> for DomRectReadOnly
impl AsRef<JsValue> for DomStringMap
impl AsRef<JsValue> for DomTokenList
impl AsRef<JsValue> for DragEvent
impl AsRef<JsValue> for Element
impl AsRef<JsValue> for ErrorEvent
impl AsRef<JsValue> for web_sys::features::gen_Event::Event
impl AsRef<JsValue> for EventSource
impl AsRef<JsValue> for EventTarget
impl AsRef<JsValue> for File
impl AsRef<JsValue> for FileList
impl AsRef<JsValue> for FileReader
impl AsRef<JsValue> for FocusEvent
impl AsRef<JsValue> for FormData
impl AsRef<JsValue> for GamepadEvent
impl AsRef<JsValue> for HashChangeEvent
impl AsRef<JsValue> for Headers
impl AsRef<JsValue> for History
impl AsRef<JsValue> for HtmlAnchorElement
impl AsRef<JsValue> for HtmlAreaElement
impl AsRef<JsValue> for HtmlAudioElement
impl AsRef<JsValue> for HtmlBaseElement
impl AsRef<JsValue> for HtmlBodyElement
impl AsRef<JsValue> for HtmlBrElement
impl AsRef<JsValue> for HtmlButtonElement
impl AsRef<JsValue> for HtmlCanvasElement
impl AsRef<JsValue> for HtmlCollection
impl AsRef<JsValue> for HtmlDListElement
impl AsRef<JsValue> for HtmlDataElement
impl AsRef<JsValue> for HtmlDataListElement
impl AsRef<JsValue> for HtmlDetailsElement
impl AsRef<JsValue> for HtmlDialogElement
impl AsRef<JsValue> for HtmlDivElement
impl AsRef<JsValue> for HtmlElement
impl AsRef<JsValue> for HtmlEmbedElement
impl AsRef<JsValue> for HtmlFieldSetElement
impl AsRef<JsValue> for HtmlFormElement
impl AsRef<JsValue> for HtmlHeadElement
impl AsRef<JsValue> for HtmlHeadingElement
impl AsRef<JsValue> for HtmlHrElement
impl AsRef<JsValue> for HtmlHtmlElement
impl AsRef<JsValue> for HtmlIFrameElement
impl AsRef<JsValue> for HtmlImageElement
impl AsRef<JsValue> for HtmlInputElement
impl AsRef<JsValue> for HtmlLabelElement
impl AsRef<JsValue> for HtmlLegendElement
impl AsRef<JsValue> for HtmlLiElement
impl AsRef<JsValue> for HtmlLinkElement
impl AsRef<JsValue> for HtmlMapElement
impl AsRef<JsValue> for HtmlMediaElement
impl AsRef<JsValue> for HtmlMenuElement
impl AsRef<JsValue> for HtmlMetaElement
impl AsRef<JsValue> for HtmlMeterElement
impl AsRef<JsValue> for HtmlModElement
impl AsRef<JsValue> for HtmlOListElement
impl AsRef<JsValue> for HtmlObjectElement
impl AsRef<JsValue> for HtmlOptGroupElement
impl AsRef<JsValue> for HtmlOptionElement
impl AsRef<JsValue> for HtmlOutputElement
impl AsRef<JsValue> for HtmlParagraphElement
impl AsRef<JsValue> for HtmlParamElement
impl AsRef<JsValue> for HtmlPictureElement
impl AsRef<JsValue> for HtmlPreElement
impl AsRef<JsValue> for HtmlProgressElement
impl AsRef<JsValue> for HtmlQuoteElement
impl AsRef<JsValue> for HtmlScriptElement
impl AsRef<JsValue> for HtmlSelectElement
impl AsRef<JsValue> for HtmlSlotElement
impl AsRef<JsValue> for HtmlSourceElement
impl AsRef<JsValue> for HtmlSpanElement
impl AsRef<JsValue> for HtmlStyleElement
impl AsRef<JsValue> for HtmlTableCaptionElement
impl AsRef<JsValue> for HtmlTableCellElement
impl AsRef<JsValue> for HtmlTableColElement
impl AsRef<JsValue> for HtmlTableElement
impl AsRef<JsValue> for HtmlTableRowElement
impl AsRef<JsValue> for HtmlTableSectionElement
impl AsRef<JsValue> for HtmlTemplateElement
impl AsRef<JsValue> for HtmlTextAreaElement
impl AsRef<JsValue> for HtmlTimeElement
impl AsRef<JsValue> for HtmlTitleElement
impl AsRef<JsValue> for HtmlTrackElement
impl AsRef<JsValue> for HtmlUListElement
impl AsRef<JsValue> for HtmlVideoElement
impl AsRef<JsValue> for InputEvent
impl AsRef<JsValue> for KeyboardEvent
impl AsRef<JsValue> for Location
impl AsRef<JsValue> for MessageEvent
impl AsRef<JsValue> for MouseEvent
impl AsRef<JsValue> for MutationObserver
impl AsRef<JsValue> for MutationObserverInit
impl AsRef<JsValue> for MutationRecord
impl AsRef<JsValue> for Node
impl AsRef<JsValue> for NodeFilter
impl AsRef<JsValue> for NodeList
impl AsRef<JsValue> for ObserverCallback
impl AsRef<JsValue> for PageTransitionEvent
impl AsRef<JsValue> for PointerEvent
impl AsRef<JsValue> for PopStateEvent
impl AsRef<JsValue> for ProgressEvent
impl AsRef<JsValue> for PromiseRejectionEvent
impl AsRef<JsValue> for QueuingStrategy
impl AsRef<JsValue> for ReadableByteStreamController
impl AsRef<JsValue> for ReadableStream
impl AsRef<JsValue> for ReadableStreamByobReader
impl AsRef<JsValue> for ReadableStreamByobRequest
impl AsRef<JsValue> for ReadableStreamDefaultController
impl AsRef<JsValue> for ReadableStreamDefaultReader
impl AsRef<JsValue> for ReadableStreamGetReaderOptions
impl AsRef<JsValue> for ReadableStreamReadResult
impl AsRef<JsValue> for ReadableWritablePair
impl AsRef<JsValue> for Request
impl AsRef<JsValue> for RequestInit
impl AsRef<JsValue> for Response
impl AsRef<JsValue> for ResponseInit
impl AsRef<JsValue> for ScrollIntoViewOptions
impl AsRef<JsValue> for ScrollToOptions
impl AsRef<JsValue> for SecurityPolicyViolationEvent
impl AsRef<JsValue> for ShadowRoot
impl AsRef<JsValue> for ShadowRootInit
impl AsRef<JsValue> for Storage
impl AsRef<JsValue> for StorageEvent
impl AsRef<JsValue> for StreamPipeOptions
impl AsRef<JsValue> for SubmitEvent
impl AsRef<JsValue> for SvgElement
impl AsRef<JsValue> for Text
impl AsRef<JsValue> for TouchEvent
impl AsRef<JsValue> for TransformStream
impl AsRef<JsValue> for TransformStreamDefaultController
impl AsRef<JsValue> for Transformer
impl AsRef<JsValue> for TransitionEvent
impl AsRef<JsValue> for TreeWalker
impl AsRef<JsValue> for UiEvent
impl AsRef<JsValue> for UnderlyingSink
impl AsRef<JsValue> for UnderlyingSource
impl AsRef<JsValue> for web_sys::features::gen_Url::Url
impl AsRef<JsValue> for UrlSearchParams
impl AsRef<JsValue> for WebSocket
impl AsRef<JsValue> for WheelEvent
impl AsRef<JsValue> for web_sys::features::gen_Window::Window
impl AsRef<JsValue> for WritableStream
impl AsRef<JsValue> for WritableStreamDefaultController
impl AsRef<JsValue> for WritableStreamDefaultWriter
impl AsRef<AbortController> for AbortController
impl AsRef<AbortSignal> for AbortSignal
impl AsRef<AddEventListenerOptions> for AddEventListenerOptions
impl AsRef<AnimationEvent> for AnimationEvent
impl AsRef<BeforeUnloadEvent> for BeforeUnloadEvent
impl AsRef<Blob> for Blob
impl AsRef<Blob> for File
impl AsRef<CharacterData> for CharacterData
impl AsRef<CharacterData> for Comment
impl AsRef<CharacterData> for Text
impl AsRef<ClipboardEvent> for ClipboardEvent
impl AsRef<CloseEvent> for CloseEvent
impl AsRef<CloseEventInit> for CloseEventInit
impl AsRef<Comment> for Comment
impl AsRef<CompositionEvent> for CompositionEvent
impl AsRef<CssStyleDeclaration> for CssStyleDeclaration
impl AsRef<CustomEvent> for CustomEvent
impl AsRef<DataTransfer> for DataTransfer
impl AsRef<DeviceMotionEvent> for DeviceMotionEvent
impl AsRef<DeviceOrientationEvent> for DeviceOrientationEvent
impl AsRef<Document> for web_sys::features::gen_Document::Document
impl AsRef<DocumentFragment> for DocumentFragment
impl AsRef<DocumentFragment> for ShadowRoot
impl AsRef<DomRect> for DomRect
impl AsRef<DomRectReadOnly> for DomRect
impl AsRef<DomRectReadOnly> for DomRectReadOnly
impl AsRef<DomStringMap> for DomStringMap
impl AsRef<DomTokenList> for DomTokenList
impl AsRef<DragEvent> for DragEvent
impl AsRef<Element> for Element
impl AsRef<Element> for HtmlAnchorElement
impl AsRef<Element> for HtmlAreaElement
impl AsRef<Element> for HtmlAudioElement
impl AsRef<Element> for HtmlBaseElement
impl AsRef<Element> for HtmlBodyElement
impl AsRef<Element> for HtmlBrElement
impl AsRef<Element> for HtmlButtonElement
impl AsRef<Element> for HtmlCanvasElement
impl AsRef<Element> for HtmlDListElement
impl AsRef<Element> for HtmlDataElement
impl AsRef<Element> for HtmlDataListElement
impl AsRef<Element> for HtmlDetailsElement
impl AsRef<Element> for HtmlDialogElement
impl AsRef<Element> for HtmlDivElement
impl AsRef<Element> for HtmlElement
impl AsRef<Element> for HtmlEmbedElement
impl AsRef<Element> for HtmlFieldSetElement
impl AsRef<Element> for HtmlFormElement
impl AsRef<Element> for HtmlHeadElement
impl AsRef<Element> for HtmlHeadingElement
impl AsRef<Element> for HtmlHrElement
impl AsRef<Element> for HtmlHtmlElement
impl AsRef<Element> for HtmlIFrameElement
impl AsRef<Element> for HtmlImageElement
impl AsRef<Element> for HtmlInputElement
impl AsRef<Element> for HtmlLabelElement
impl AsRef<Element> for HtmlLegendElement
impl AsRef<Element> for HtmlLiElement
impl AsRef<Element> for HtmlLinkElement
impl AsRef<Element> for HtmlMapElement
impl AsRef<Element> for HtmlMediaElement
impl AsRef<Element> for HtmlMenuElement
impl AsRef<Element> for HtmlMetaElement
impl AsRef<Element> for HtmlMeterElement
impl AsRef<Element> for HtmlModElement
impl AsRef<Element> for HtmlOListElement
impl AsRef<Element> for HtmlObjectElement
impl AsRef<Element> for HtmlOptGroupElement
impl AsRef<Element> for HtmlOptionElement
impl AsRef<Element> for HtmlOutputElement
impl AsRef<Element> for HtmlParagraphElement
impl AsRef<Element> for HtmlParamElement
impl AsRef<Element> for HtmlPictureElement
impl AsRef<Element> for HtmlPreElement
impl AsRef<Element> for HtmlProgressElement
impl AsRef<Element> for HtmlQuoteElement
impl AsRef<Element> for HtmlScriptElement
impl AsRef<Element> for HtmlSelectElement
impl AsRef<Element> for HtmlSlotElement
impl AsRef<Element> for HtmlSourceElement
impl AsRef<Element> for HtmlSpanElement
impl AsRef<Element> for HtmlStyleElement
impl AsRef<Element> for HtmlTableCaptionElement
impl AsRef<Element> for HtmlTableCellElement
impl AsRef<Element> for HtmlTableColElement
impl AsRef<Element> for HtmlTableElement
impl AsRef<Element> for HtmlTableRowElement
impl AsRef<Element> for HtmlTableSectionElement
impl AsRef<Element> for HtmlTemplateElement
impl AsRef<Element> for HtmlTextAreaElement
impl AsRef<Element> for HtmlTimeElement
impl AsRef<Element> for HtmlTitleElement
impl AsRef<Element> for HtmlTrackElement
impl AsRef<Element> for HtmlUListElement
impl AsRef<Element> for HtmlVideoElement
impl AsRef<Element> for SvgElement
impl AsRef<ErrorEvent> for ErrorEvent
impl AsRef<Event> for AnimationEvent
impl AsRef<Event> for BeforeUnloadEvent
impl AsRef<Event> for ClipboardEvent
impl AsRef<Event> for CloseEvent
impl AsRef<Event> for CompositionEvent
impl AsRef<Event> for CustomEvent
impl AsRef<Event> for DeviceMotionEvent
impl AsRef<Event> for DeviceOrientationEvent
impl AsRef<Event> for DragEvent
impl AsRef<Event> for ErrorEvent
impl AsRef<Event> for web_sys::features::gen_Event::Event
impl AsRef<Event> for FocusEvent
impl AsRef<Event> for GamepadEvent
impl AsRef<Event> for HashChangeEvent
impl AsRef<Event> for InputEvent
impl AsRef<Event> for KeyboardEvent
impl AsRef<Event> for MessageEvent
impl AsRef<Event> for MouseEvent
impl AsRef<Event> for PageTransitionEvent
impl AsRef<Event> for PointerEvent
impl AsRef<Event> for PopStateEvent
impl AsRef<Event> for ProgressEvent
impl AsRef<Event> for PromiseRejectionEvent
impl AsRef<Event> for SecurityPolicyViolationEvent
impl AsRef<Event> for StorageEvent
impl AsRef<Event> for SubmitEvent
impl AsRef<Event> for TouchEvent
impl AsRef<Event> for TransitionEvent
impl AsRef<Event> for UiEvent
impl AsRef<Event> for WheelEvent
impl AsRef<EventSource> for EventSource
impl AsRef<EventTarget> for AbortSignal
impl AsRef<EventTarget> for CharacterData
impl AsRef<EventTarget> for Comment
impl AsRef<EventTarget> for web_sys::features::gen_Document::Document
impl AsRef<EventTarget> for DocumentFragment
impl AsRef<EventTarget> for Element
impl AsRef<EventTarget> for EventSource
impl AsRef<EventTarget> for EventTarget
impl AsRef<EventTarget> for FileReader
impl AsRef<EventTarget> for HtmlAnchorElement
impl AsRef<EventTarget> for HtmlAreaElement
impl AsRef<EventTarget> for HtmlAudioElement
impl AsRef<EventTarget> for HtmlBaseElement
impl AsRef<EventTarget> for HtmlBodyElement
impl AsRef<EventTarget> for HtmlBrElement
impl AsRef<EventTarget> for HtmlButtonElement
impl AsRef<EventTarget> for HtmlCanvasElement
impl AsRef<EventTarget> for HtmlDListElement
impl AsRef<EventTarget> for HtmlDataElement
impl AsRef<EventTarget> for HtmlDataListElement
impl AsRef<EventTarget> for HtmlDetailsElement
impl AsRef<EventTarget> for HtmlDialogElement
impl AsRef<EventTarget> for HtmlDivElement
impl AsRef<EventTarget> for HtmlElement
impl AsRef<EventTarget> for HtmlEmbedElement
impl AsRef<EventTarget> for HtmlFieldSetElement
impl AsRef<EventTarget> for HtmlFormElement
impl AsRef<EventTarget> for HtmlHeadElement
impl AsRef<EventTarget> for HtmlHeadingElement
impl AsRef<EventTarget> for HtmlHrElement
impl AsRef<EventTarget> for HtmlHtmlElement
impl AsRef<EventTarget> for HtmlIFrameElement
impl AsRef<EventTarget> for HtmlImageElement
impl AsRef<EventTarget> for HtmlInputElement
impl AsRef<EventTarget> for HtmlLabelElement
impl AsRef<EventTarget> for HtmlLegendElement
impl AsRef<EventTarget> for HtmlLiElement
impl AsRef<EventTarget> for HtmlLinkElement
impl AsRef<EventTarget> for HtmlMapElement
impl AsRef<EventTarget> for HtmlMediaElement
impl AsRef<EventTarget> for HtmlMenuElement
impl AsRef<EventTarget> for HtmlMetaElement
impl AsRef<EventTarget> for HtmlMeterElement
impl AsRef<EventTarget> for HtmlModElement
impl AsRef<EventTarget> for HtmlOListElement
impl AsRef<EventTarget> for HtmlObjectElement
impl AsRef<EventTarget> for HtmlOptGroupElement
impl AsRef<EventTarget> for HtmlOptionElement
impl AsRef<EventTarget> for HtmlOutputElement
impl AsRef<EventTarget> for HtmlParagraphElement
impl AsRef<EventTarget> for HtmlParamElement
impl AsRef<EventTarget> for HtmlPictureElement
impl AsRef<EventTarget> for HtmlPreElement
impl AsRef<EventTarget> for HtmlProgressElement
impl AsRef<EventTarget> for HtmlQuoteElement
impl AsRef<EventTarget> for HtmlScriptElement
impl AsRef<EventTarget> for HtmlSelectElement
impl AsRef<EventTarget> for HtmlSlotElement
impl AsRef<EventTarget> for HtmlSourceElement
impl AsRef<EventTarget> for HtmlSpanElement
impl AsRef<EventTarget> for HtmlStyleElement
impl AsRef<EventTarget> for HtmlTableCaptionElement
impl AsRef<EventTarget> for HtmlTableCellElement
impl AsRef<EventTarget> for HtmlTableColElement
impl AsRef<EventTarget> for HtmlTableElement
impl AsRef<EventTarget> for HtmlTableRowElement
impl AsRef<EventTarget> for HtmlTableSectionElement
impl AsRef<EventTarget> for HtmlTemplateElement
impl AsRef<EventTarget> for HtmlTextAreaElement
impl AsRef<EventTarget> for HtmlTimeElement
impl AsRef<EventTarget> for HtmlTitleElement
impl AsRef<EventTarget> for HtmlTrackElement
impl AsRef<EventTarget> for HtmlUListElement
impl AsRef<EventTarget> for HtmlVideoElement
impl AsRef<EventTarget> for Node
impl AsRef<EventTarget> for ShadowRoot
impl AsRef<EventTarget> for SvgElement
impl AsRef<EventTarget> for Text
impl AsRef<EventTarget> for WebSocket
impl AsRef<EventTarget> for web_sys::features::gen_Window::Window
impl AsRef<File> for File
impl AsRef<FileList> for FileList
impl AsRef<FileReader> for FileReader
impl AsRef<FocusEvent> for FocusEvent
impl AsRef<FormData> for FormData
impl AsRef<GamepadEvent> for GamepadEvent
impl AsRef<HashChangeEvent> for HashChangeEvent
impl AsRef<Headers> for Headers
impl AsRef<History> for History
impl AsRef<HtmlAnchorElement> for HtmlAnchorElement
impl AsRef<HtmlAreaElement> for HtmlAreaElement
impl AsRef<HtmlAudioElement> for HtmlAudioElement
impl AsRef<HtmlBaseElement> for HtmlBaseElement
impl AsRef<HtmlBodyElement> for HtmlBodyElement
impl AsRef<HtmlBrElement> for HtmlBrElement
impl AsRef<HtmlButtonElement> for HtmlButtonElement
impl AsRef<HtmlCanvasElement> for HtmlCanvasElement
impl AsRef<HtmlCollection> for HtmlCollection
impl AsRef<HtmlDListElement> for HtmlDListElement
impl AsRef<HtmlDataElement> for HtmlDataElement
impl AsRef<HtmlDataListElement> for HtmlDataListElement
impl AsRef<HtmlDetailsElement> for HtmlDetailsElement
impl AsRef<HtmlDialogElement> for HtmlDialogElement
impl AsRef<HtmlDivElement> for HtmlDivElement
impl AsRef<HtmlElement> for HtmlAnchorElement
impl AsRef<HtmlElement> for HtmlAreaElement
impl AsRef<HtmlElement> for HtmlAudioElement
impl AsRef<HtmlElement> for HtmlBaseElement
impl AsRef<HtmlElement> for HtmlBodyElement
impl AsRef<HtmlElement> for HtmlBrElement
impl AsRef<HtmlElement> for HtmlButtonElement
impl AsRef<HtmlElement> for HtmlCanvasElement
impl AsRef<HtmlElement> for HtmlDListElement
impl AsRef<HtmlElement> for HtmlDataElement
impl AsRef<HtmlElement> for HtmlDataListElement
impl AsRef<HtmlElement> for HtmlDetailsElement
impl AsRef<HtmlElement> for HtmlDialogElement
impl AsRef<HtmlElement> for HtmlDivElement
impl AsRef<HtmlElement> for HtmlElement
impl AsRef<HtmlElement> for HtmlEmbedElement
impl AsRef<HtmlElement> for HtmlFieldSetElement
impl AsRef<HtmlElement> for HtmlFormElement
impl AsRef<HtmlElement> for HtmlHeadElement
impl AsRef<HtmlElement> for HtmlHeadingElement
impl AsRef<HtmlElement> for HtmlHrElement
impl AsRef<HtmlElement> for HtmlHtmlElement
impl AsRef<HtmlElement> for HtmlIFrameElement
impl AsRef<HtmlElement> for HtmlImageElement
impl AsRef<HtmlElement> for HtmlInputElement
impl AsRef<HtmlElement> for HtmlLabelElement
impl AsRef<HtmlElement> for HtmlLegendElement
impl AsRef<HtmlElement> for HtmlLiElement
impl AsRef<HtmlElement> for HtmlLinkElement
impl AsRef<HtmlElement> for HtmlMapElement
impl AsRef<HtmlElement> for HtmlMediaElement
impl AsRef<HtmlElement> for HtmlMenuElement
impl AsRef<HtmlElement> for HtmlMetaElement
impl AsRef<HtmlElement> for HtmlMeterElement
impl AsRef<HtmlElement> for HtmlModElement
impl AsRef<HtmlElement> for HtmlOListElement
impl AsRef<HtmlElement> for HtmlObjectElement
impl AsRef<HtmlElement> for HtmlOptGroupElement
impl AsRef<HtmlElement> for HtmlOptionElement
impl AsRef<HtmlElement> for HtmlOutputElement
impl AsRef<HtmlElement> for HtmlParagraphElement
impl AsRef<HtmlElement> for HtmlParamElement
impl AsRef<HtmlElement> for HtmlPictureElement
impl AsRef<HtmlElement> for HtmlPreElement
impl AsRef<HtmlElement> for HtmlProgressElement
impl AsRef<HtmlElement> for HtmlQuoteElement
impl AsRef<HtmlElement> for HtmlScriptElement
impl AsRef<HtmlElement> for HtmlSelectElement
impl AsRef<HtmlElement> for HtmlSlotElement
impl AsRef<HtmlElement> for HtmlSourceElement
impl AsRef<HtmlElement> for HtmlSpanElement
impl AsRef<HtmlElement> for HtmlStyleElement
impl AsRef<HtmlElement> for HtmlTableCaptionElement
impl AsRef<HtmlElement> for HtmlTableCellElement
impl AsRef<HtmlElement> for HtmlTableColElement
impl AsRef<HtmlElement> for HtmlTableElement
impl AsRef<HtmlElement> for HtmlTableRowElement
impl AsRef<HtmlElement> for HtmlTableSectionElement
impl AsRef<HtmlElement> for HtmlTemplateElement
impl AsRef<HtmlElement> for HtmlTextAreaElement
impl AsRef<HtmlElement> for HtmlTimeElement
impl AsRef<HtmlElement> for HtmlTitleElement
impl AsRef<HtmlElement> for HtmlTrackElement
impl AsRef<HtmlElement> for HtmlUListElement
impl AsRef<HtmlElement> for HtmlVideoElement
impl AsRef<HtmlEmbedElement> for HtmlEmbedElement
impl AsRef<HtmlFieldSetElement> for HtmlFieldSetElement
impl AsRef<HtmlFormElement> for HtmlFormElement
impl AsRef<HtmlHeadElement> for HtmlHeadElement
impl AsRef<HtmlHeadingElement> for HtmlHeadingElement
impl AsRef<HtmlHrElement> for HtmlHrElement
impl AsRef<HtmlHtmlElement> for HtmlHtmlElement
impl AsRef<HtmlIFrameElement> for HtmlIFrameElement
impl AsRef<HtmlImageElement> for HtmlImageElement
impl AsRef<HtmlInputElement> for HtmlInputElement
impl AsRef<HtmlLabelElement> for HtmlLabelElement
impl AsRef<HtmlLegendElement> for HtmlLegendElement
impl AsRef<HtmlLiElement> for HtmlLiElement
impl AsRef<HtmlLinkElement> for HtmlLinkElement
impl AsRef<HtmlMapElement> for HtmlMapElement
impl AsRef<HtmlMediaElement> for HtmlAudioElement
impl AsRef<HtmlMediaElement> for HtmlMediaElement
impl AsRef<HtmlMediaElement> for HtmlVideoElement
impl AsRef<HtmlMenuElement> for HtmlMenuElement
impl AsRef<HtmlMetaElement> for HtmlMetaElement
impl AsRef<HtmlMeterElement> for HtmlMeterElement
impl AsRef<HtmlModElement> for HtmlModElement
impl AsRef<HtmlOListElement> for HtmlOListElement
impl AsRef<HtmlObjectElement> for HtmlObjectElement
impl AsRef<HtmlOptGroupElement> for HtmlOptGroupElement
impl AsRef<HtmlOptionElement> for HtmlOptionElement
impl AsRef<HtmlOutputElement> for HtmlOutputElement
impl AsRef<HtmlParagraphElement> for HtmlParagraphElement
impl AsRef<HtmlParamElement> for HtmlParamElement
impl AsRef<HtmlPictureElement> for HtmlPictureElement
impl AsRef<HtmlPreElement> for HtmlPreElement
impl AsRef<HtmlProgressElement> for HtmlProgressElement
impl AsRef<HtmlQuoteElement> for HtmlQuoteElement
impl AsRef<HtmlScriptElement> for HtmlScriptElement
impl AsRef<HtmlSelectElement> for HtmlSelectElement
impl AsRef<HtmlSlotElement> for HtmlSlotElement
impl AsRef<HtmlSourceElement> for HtmlSourceElement
impl AsRef<HtmlSpanElement> for HtmlSpanElement
impl AsRef<HtmlStyleElement> for HtmlStyleElement
impl AsRef<HtmlTableCaptionElement> for HtmlTableCaptionElement
impl AsRef<HtmlTableCellElement> for HtmlTableCellElement
impl AsRef<HtmlTableColElement> for HtmlTableColElement
impl AsRef<HtmlTableElement> for HtmlTableElement
impl AsRef<HtmlTableRowElement> for HtmlTableRowElement
impl AsRef<HtmlTableSectionElement> for HtmlTableSectionElement
impl AsRef<HtmlTemplateElement> for HtmlTemplateElement
impl AsRef<HtmlTextAreaElement> for HtmlTextAreaElement
impl AsRef<HtmlTimeElement> for HtmlTimeElement
impl AsRef<HtmlTitleElement> for HtmlTitleElement
impl AsRef<HtmlTrackElement> for HtmlTrackElement
impl AsRef<HtmlUListElement> for HtmlUListElement
impl AsRef<HtmlVideoElement> for HtmlVideoElement
impl AsRef<InputEvent> for InputEvent
impl AsRef<KeyboardEvent> for KeyboardEvent
impl AsRef<Location> for Location
impl AsRef<MessageEvent> for MessageEvent
impl AsRef<MouseEvent> for DragEvent
impl AsRef<MouseEvent> for MouseEvent
impl AsRef<MouseEvent> for PointerEvent
impl AsRef<MouseEvent> for WheelEvent
impl AsRef<MutationObserver> for MutationObserver
impl AsRef<MutationObserverInit> for MutationObserverInit
impl AsRef<MutationRecord> for MutationRecord
impl AsRef<Node> for CharacterData
impl AsRef<Node> for Comment
impl AsRef<Node> for web_sys::features::gen_Document::Document
impl AsRef<Node> for DocumentFragment
impl AsRef<Node> for Element
impl AsRef<Node> for HtmlAnchorElement
impl AsRef<Node> for HtmlAreaElement
impl AsRef<Node> for HtmlAudioElement
impl AsRef<Node> for HtmlBaseElement
impl AsRef<Node> for HtmlBodyElement
impl AsRef<Node> for HtmlBrElement
impl AsRef<Node> for HtmlButtonElement
impl AsRef<Node> for HtmlCanvasElement
impl AsRef<Node> for HtmlDListElement
impl AsRef<Node> for HtmlDataElement
impl AsRef<Node> for HtmlDataListElement
impl AsRef<Node> for HtmlDetailsElement
impl AsRef<Node> for HtmlDialogElement
impl AsRef<Node> for HtmlDivElement
impl AsRef<Node> for HtmlElement
impl AsRef<Node> for HtmlEmbedElement
impl AsRef<Node> for HtmlFieldSetElement
impl AsRef<Node> for HtmlFormElement
impl AsRef<Node> for HtmlHeadElement
impl AsRef<Node> for HtmlHeadingElement
impl AsRef<Node> for HtmlHrElement
impl AsRef<Node> for HtmlHtmlElement
impl AsRef<Node> for HtmlIFrameElement
impl AsRef<Node> for HtmlImageElement
impl AsRef<Node> for HtmlInputElement
impl AsRef<Node> for HtmlLabelElement
impl AsRef<Node> for HtmlLegendElement
impl AsRef<Node> for HtmlLiElement
impl AsRef<Node> for HtmlLinkElement
impl AsRef<Node> for HtmlMapElement
impl AsRef<Node> for HtmlMediaElement
impl AsRef<Node> for HtmlMenuElement
impl AsRef<Node> for HtmlMetaElement
impl AsRef<Node> for HtmlMeterElement
impl AsRef<Node> for HtmlModElement
impl AsRef<Node> for HtmlOListElement
impl AsRef<Node> for HtmlObjectElement
impl AsRef<Node> for HtmlOptGroupElement
impl AsRef<Node> for HtmlOptionElement
impl AsRef<Node> for HtmlOutputElement
impl AsRef<Node> for HtmlParagraphElement
impl AsRef<Node> for HtmlParamElement
impl AsRef<Node> for HtmlPictureElement
impl AsRef<Node> for HtmlPreElement
impl AsRef<Node> for HtmlProgressElement
impl AsRef<Node> for HtmlQuoteElement
impl AsRef<Node> for HtmlScriptElement
impl AsRef<Node> for HtmlSelectElement
impl AsRef<Node> for HtmlSlotElement
impl AsRef<Node> for HtmlSourceElement
impl AsRef<Node> for HtmlSpanElement
impl AsRef<Node> for HtmlStyleElement
impl AsRef<Node> for HtmlTableCaptionElement
impl AsRef<Node> for HtmlTableCellElement
impl AsRef<Node> for HtmlTableColElement
impl AsRef<Node> for HtmlTableElement
impl AsRef<Node> for HtmlTableRowElement
impl AsRef<Node> for HtmlTableSectionElement
impl AsRef<Node> for HtmlTemplateElement
impl AsRef<Node> for HtmlTextAreaElement
impl AsRef<Node> for HtmlTimeElement
impl AsRef<Node> for HtmlTitleElement
impl AsRef<Node> for HtmlTrackElement
impl AsRef<Node> for HtmlUListElement
impl AsRef<Node> for HtmlVideoElement
impl AsRef<Node> for Node
impl AsRef<Node> for ShadowRoot
impl AsRef<Node> for SvgElement
impl AsRef<Node> for Text
impl AsRef<NodeFilter> for NodeFilter
impl AsRef<NodeList> for NodeList
impl AsRef<ObserverCallback> for ObserverCallback
impl AsRef<PageTransitionEvent> for PageTransitionEvent
impl AsRef<PointerEvent> for PointerEvent
impl AsRef<PopStateEvent> for PopStateEvent
impl AsRef<ProgressEvent> for ProgressEvent
impl AsRef<PromiseRejectionEvent> for PromiseRejectionEvent
impl AsRef<QueuingStrategy> for QueuingStrategy
impl AsRef<ReadableByteStreamController> for ReadableByteStreamController
impl AsRef<ReadableStream> for ReadableStream
impl AsRef<ReadableStreamByobReader> for ReadableStreamByobReader
impl AsRef<ReadableStreamByobRequest> for ReadableStreamByobRequest
impl AsRef<ReadableStreamDefaultController> for ReadableStreamDefaultController
impl AsRef<ReadableStreamDefaultReader> for ReadableStreamDefaultReader
impl AsRef<ReadableStreamGetReaderOptions> for ReadableStreamGetReaderOptions
impl AsRef<ReadableStreamReadResult> for ReadableStreamReadResult
impl AsRef<ReadableWritablePair> for ReadableWritablePair
impl AsRef<Request> for Request
impl AsRef<RequestInit> for RequestInit
impl AsRef<Response> for Response
impl AsRef<ResponseInit> for ResponseInit
impl AsRef<ScrollIntoViewOptions> for ScrollIntoViewOptions
impl AsRef<ScrollToOptions> for ScrollToOptions
impl AsRef<SecurityPolicyViolationEvent> for SecurityPolicyViolationEvent
impl AsRef<ShadowRoot> for ShadowRoot
impl AsRef<ShadowRootInit> for ShadowRootInit
impl AsRef<Storage> for Storage
impl AsRef<StorageEvent> for StorageEvent
impl AsRef<StreamPipeOptions> for StreamPipeOptions
impl AsRef<SubmitEvent> for SubmitEvent
impl AsRef<SvgElement> for SvgElement
impl AsRef<Text> for Text
impl AsRef<TouchEvent> for TouchEvent
impl AsRef<TransformStream> for TransformStream
impl AsRef<TransformStreamDefaultController> for TransformStreamDefaultController
impl AsRef<Transformer> for Transformer
impl AsRef<TransitionEvent> for TransitionEvent
impl AsRef<TreeWalker> for TreeWalker
impl AsRef<UiEvent> for CompositionEvent
impl AsRef<UiEvent> for DragEvent
impl AsRef<UiEvent> for FocusEvent
impl AsRef<UiEvent> for InputEvent
impl AsRef<UiEvent> for KeyboardEvent
impl AsRef<UiEvent> for MouseEvent
impl AsRef<UiEvent> for PointerEvent
impl AsRef<UiEvent> for TouchEvent
impl AsRef<UiEvent> for UiEvent
impl AsRef<UiEvent> for WheelEvent
impl AsRef<UnderlyingSink> for UnderlyingSink
impl AsRef<UnderlyingSource> for UnderlyingSource
impl AsRef<Url> for web_sys::features::gen_Url::Url
impl AsRef<UrlSearchParams> for UrlSearchParams
impl AsRef<WebSocket> for WebSocket
impl AsRef<WheelEvent> for WheelEvent
impl AsRef<Window> for web_sys::features::gen_Window::Window
impl AsRef<WritableStream> for WritableStream
impl AsRef<WritableStreamDefaultController> for WritableStreamDefaultController
impl AsRef<WritableStreamDefaultWriter> for WritableStreamDefaultWriter
impl AsRef<BStr> for str
impl AsRef<BStr> for str
impl AsRef<BStr> for [u8]
impl AsRef<BStr> for [u8]
impl AsRef<Bytes> for str
impl AsRef<Bytes> for str
impl AsRef<Bytes> for [u8]
impl AsRef<Bytes> for [u8]
impl AsRef<Interval> for IntervalStream
impl AsRef<OwnedValue> for OwnedValue
impl AsRef<QueryResults> for QueryResult
impl AsRef<ReadDir> for ReadDirStream
impl AsRef<RiAbsoluteStr<IriSpec>> for RiAbsoluteStr<UriSpec>
impl AsRef<RiAbsoluteStr<IriSpec>> for RiAbsoluteString<UriSpec>
impl AsRef<RiFragmentStr<IriSpec>> for RiFragmentStr<UriSpec>
impl AsRef<RiFragmentStr<IriSpec>> for RiFragmentString<UriSpec>
impl AsRef<RiQueryStr<IriSpec>> for RiQueryStr<UriSpec>
impl AsRef<RiQueryStr<IriSpec>> for RiQueryString<UriSpec>
impl AsRef<RiReferenceStr<IriSpec>> for RiReferenceStr<UriSpec>
impl AsRef<RiReferenceStr<IriSpec>> for RiReferenceString<UriSpec>
impl AsRef<RiRelativeStr<IriSpec>> for RiRelativeStr<UriSpec>
impl AsRef<RiRelativeStr<IriSpec>> for RiRelativeString<UriSpec>
impl AsRef<RiStr<IriSpec>> for RiStr<UriSpec>
impl AsRef<RiStr<IriSpec>> for RiString<UriSpec>
impl AsRef<Semaphore> for PollSemaphore
impl AsRef<TcpStream> for OwnedReadHalf
impl AsRef<TcpStream> for OwnedWriteHalf
impl AsRef<TcpStream> for ReadHalf<'_>
impl AsRef<TcpStream> for WriteHalf<'_>
impl AsRef<UnixStream> for OwnedReadHalf
impl AsRef<UnixStream> for OwnedWriteHalf
impl AsRef<UnixStream> for ReadHalf<'_>
impl AsRef<UnixStream> for WriteHalf<'_>
impl AsRef<UriTemplateStr> for UriTemplateStr
impl AsRef<UriTemplateStr> for UriTemplateString
impl AsRef<Utf8Path> for str
impl AsRef<Utf8Path> for String
impl AsRef<Utf8Path> for Iter<'_>
impl AsRef<Utf8Path> for Utf8Component<'_>
impl AsRef<Utf8Path> for Utf8Components<'_>
impl AsRef<Utf8Path> for Utf8Path
impl AsRef<Utf8Path> for Utf8PathBuf
impl AsRef<[u8; 4]> for Ipv4Addr
impl AsRef<[u8; 12]> for Nonce
impl AsRef<[u8; 16]> for Ipv6Addr
impl AsRef<[u8]> for str
impl AsRef<[u8]> for HeaderName
impl AsRef<[u8]> for HeaderValue
impl AsRef<[u8]> for BytesMut
impl AsRef<[u8]> for flams_router_vscode::server_fn::Bytes
impl AsRef<[u8]> for ByteStr
impl AsRef<[u8]> for ByteString
impl AsRef<[u8]> for String
impl AsRef<[u8]> for Oid
impl AsRef<[u8]> for DigestBytes
impl AsRef<[u8]> for OpensslString
impl AsRef<[u8]> for OpensslStringRef
impl AsRef<[u8]> for Uuid
impl AsRef<[u8]> for AeadKey
impl AsRef<[u8]> for AlgorithmIdentifier
impl AsRef<[u8]> for AlignedVec
impl AsRef<[u8]> for AssociatedData
impl AsRef<[u8]> for BStr
impl AsRef<[u8]> for BStr
impl AsRef<[u8]> for Bytes
impl AsRef<[u8]> for Bytes
impl AsRef<[u8]> for CertificateDer<'_>
impl AsRef<[u8]> for CertificateRevocationListDer<'_>
impl AsRef<[u8]> for CertificateSigningRequestDer<'_>
impl AsRef<[u8]> for Der<'_>
impl AsRef<[u8]> for Digest
impl AsRef<[u8]> for DistinguishedName
impl AsRef<[u8]> for Document
impl AsRef<[u8]> for EchConfigListBytes<'_>
impl AsRef<[u8]> for Iv
impl AsRef<[u8]> for KeyId
impl AsRef<[u8]> for Literal
impl AsRef<[u8]> for Mmap
impl AsRef<[u8]> for MmapMut
impl AsRef<[u8]> for OkmBlock
impl AsRef<[u8]> for Output
impl AsRef<[u8]> for Output
impl AsRef<[u8]> for OwnedBytes
impl AsRef<[u8]> for PrefixedPayload
impl AsRef<[u8]> for Protocol
impl AsRef<[u8]> for Protocol
impl AsRef<[u8]> for PublicKey
impl AsRef<[u8]> for PublicKey
impl AsRef<[u8]> for ReasonPhrase
impl AsRef<[u8]> for Signature
impl AsRef<[u8]> for SqliteOwnedBuf
impl AsRef<[u8]> for SubjectPublicKeyInfoDer<'_>
impl AsRef<[u8]> for Tag
impl AsRef<[u8]> for Tag
impl AsRef<[u8]> for Tag
impl AsRef<[u8]> for Tag
impl AsRef<[u8]> for Utf8Bytes
impl AsRef<[u64]> for Block
impl AsRef<dyn Error + Send + Sync> for anyhow::Error
impl AsRef<dyn Error + Send + Sync> for Report
impl AsRef<dyn Error> for anyhow::Error
impl AsRef<dyn Error> for Report
impl<'a> AsRef<str> for alloc::string::Drain<'a>
impl<'a> AsRef<str> for Name<'a>
impl<'a> AsRef<str> for CSSString<'a>
impl<'a> AsRef<str> for CowArcStr<'a>
impl<'a> AsRef<str> for CowRcStr<'a>
impl<'a> AsRef<str> for CustomIdent<'a>
impl<'a> AsRef<str> for DashedIdent<'a>
impl<'a> AsRef<str> for Ident<'a>
impl<'a> AsRef<str> for Ident<'a>
impl<'a> AsRef<str> for Salt<'a>
impl<'a> AsRef<str> for Value<'a>
impl<'a> AsRef<Cookie<'a>> for Cookie<'a>
impl<'a> AsRef<Cookie<'a>> for CookieBuilder<'a>
impl<'a> AsRef<Event<'a>> for Event<'a>
impl<'a> AsRef<[u8]> for alloc::string::Drain<'a>
impl<'a> AsRef<[u8]> for LocalName<'a>
impl<'a> AsRef<[u8]> for Namespace<'a>
impl<'a> AsRef<[u8]> for Prefix<'a>
impl<'a> AsRef<[u8]> for QName<'a>
impl<'a, K, V, T, TDeref> AsRef<TDeref> for MappedRef<'a, K, V, T>
impl<'a, K, V, T, TDeref> AsRef<TDeref> for MappedRef<'a, K, V, T>
impl<'a, T> AsRef<ZeroSlice<T>> for ZeroVec<'a, T>where
T: AsULE,
impl<'a, T> AsRef<[<T as AsULE>::ULE]> for ZeroVec<'a, T>where
T: AsULE,
impl<'a, T, A> AsRef<[T]> for alloc::vec::drain::Drain<'a, T, A>where
A: Allocator,
impl<'a, T, A> AsRef<[T]> for Drain<'a, T, A>where
A: Allocator,
impl<'i> AsRef<str> for CustomPropertyName<'i>
impl<'i> AsRef<[Spanned<DeValue<'i>>]> for DeArray<'i>
impl<'k> AsRef<str> for Key<'k>
impl<A> AsRef<A> for Interned<Arc<A>>where
A: ?Sized,
impl<A> AsRef<[<A as Array>::Item]> for SmallVec<A>where
A: Array,
impl<A> AsRef<[u8]> for Aad<A>
impl<B> AsRef<[u8]> for UnparsedPublicKey<B>
impl<B> AsRef<[u8]> for UnparsedPublicKey<B>
impl<C, T, const N: usize> AsRef<[T; N]> for Alpha<C, T>
impl<C, T, const N: usize> AsRef<[T]> for Alpha<C, T>
impl<C, T, const N: usize> AsRef<Alpha<C, T>> for [T; N]
impl<C, const N: usize> AsRef<PreAlpha<C>> for [<C as Premultiply>::Scalar; N]
impl<C, const N: usize> AsRef<[<C as Premultiply>::Scalar; N]> for PreAlpha<C>
impl<C, const N: usize> AsRef<[<C as Premultiply>::Scalar]> for PreAlpha<C>
impl<DB> AsRef<<DB as Database>::Connection> for PoolConnection<DB>where
DB: Database,
impl<Data> AsRef<Fst<Data>> for Map<Data>
Returns the underlying finite state transducer.
impl<F> AsRef<Path> for NamedTempFile<F>
impl<F, A> AsRef<<F as SliceFormat>::Slice> for Tendril<F, A>where
F: SliceFormat,
A: Atomicity,
impl<F, W> AsRef<F> for With<F, W>where
F: ?Sized,
impl<I> AsRef<I> for LocatingSlice<I>
impl<I> AsRef<I> for LocatingSlice<I>
impl<I, S> AsRef<I> for Stateful<I, S>
impl<I, S> AsRef<I> for Stateful<I, S>
impl<L, R> AsRef<str> for Either<L, R>
impl<L, R> AsRef<CStr> for Either<L, R>
Requires crate feature std
.
impl<L, R> AsRef<OsStr> for Either<L, R>
Requires crate feature std
.
impl<L, R> AsRef<Path> for Either<L, R>
Requires crate feature std
.