Struct JsValue

Source
pub struct JsValue { /* private fields */ }
Expand description

Represents a value that exists on the JavaScript side. Value can be anything - number, string, object, undefined, null, …

Implementations§

Source§

impl JsValue

Source

pub fn browser(&self) -> &Browser

Source§

impl JsValue

Source

pub fn retrieve_json(&self) -> RetrieveFuture<'_, Value>

Retrive this value from the JS side to the Rust side. Returns Future whose output is a serde_json::Value.

§use wsdom::dom::Browser
§use wsdom::dom::HTMLInputElement;

async fn example(input: &HTMLInputElement) { let _val = input.get_value().retrieve_json().await; }

Trait Implementations§

Source§

impl AsRef<JsValue> for AbstractRange

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Animation

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AnimationEffect

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AnimationTimeline

Source§

fn as_ref(&self) -> &JsValue

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

impl<T> AsRef<JsValue> for Array<T>
where T: JsCast,

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AudioNode

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AudioScheduledSourceNode

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AuthenticatorResponse

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for BaseAudioContext

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Blob

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CSSConditionRule

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CSSGroupingRule

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CSSMathValue

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CSSNumericValue

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CSSRule

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CSSStyleValue

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CSSTransformComponent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CharacterData

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Credential

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DOMException

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DOMMatrixReadOnly

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DOMPointReadOnly

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DOMRect

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DOMRectReadOnly

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Document

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DocumentFragment

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Element

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Error

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Event

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for EventTarget

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for FileSystemEntry

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for FileSystemHandle

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for HTMLElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for HTMLMediaElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for HTMLTableCellElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for IDBCursor

Source§

fn as_ref(&self) -> &JsValue

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

impl<T> AsRef<JsValue> for IDBRequest<T>
where T: JsCast,

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for JsBoolean

Source§

fn as_ref(&self) -> &JsValue

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

impl<T> AsRef<JsValue> for JsNullable<T>

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for JsNullish

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for JsNumber

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for JsObject

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for JsString

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for JsSymbol

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for JsValue

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for MIDIPort

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for MediaDeviceInfo

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for MediaStreamTrack

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for MouseEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Node

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for NodeList

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for PaymentRequestUpdateEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for PerformanceEntry

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for PerformanceResourceTiming

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SVGAnimationElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SVGComponentTransferFunctionElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SVGElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SVGGeometryElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SVGGradientElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SVGGraphicsElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SVGTextContentElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SVGTextPositioningElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SpeechSynthesisEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for StylePropertyMapReadOnly

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for StyleSheet

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Text

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for TextTrackCue

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for UIEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Worklet

Source§

fn as_ref(&self) -> &JsValue

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

impl<W> AsRef<JsValue> for WritableStream<W>
where W: JsCast,

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for XMLHttpRequestEventTarget

Source§

fn as_ref(&self) -> &JsValue

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

impl Clone for JsValue

Source§

fn clone(&self) -> JsValue

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 Drop for JsValue

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Into<JsValue> for AbstractRange

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for Animation

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for AnimationEffect

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for AnimationTimeline

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl<T> Into<JsValue> for Array<T>
where T: JsCast,

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for AudioNode

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for AudioScheduledSourceNode

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for AuthenticatorResponse

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for BaseAudioContext

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for Blob

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for CSSConditionRule

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for CSSGroupingRule

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for CSSMathValue

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for CSSNumericValue

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for CSSRule

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for CSSStyleValue

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for CSSTransformComponent

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for CharacterData

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for Credential

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for DOMException

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for DOMMatrixReadOnly

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for DOMPointReadOnly

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for DOMRect

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for DOMRectReadOnly

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for Document

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for DocumentFragment

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for Element

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for Error

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for Event

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for EventTarget

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for FileSystemEntry

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for FileSystemHandle

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for HTMLElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for HTMLMediaElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for HTMLTableCellElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for IDBCursor

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl<T> Into<JsValue> for IDBRequest<T>
where T: JsCast,

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for JsBoolean

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl<T> Into<JsValue> for JsNullable<T>

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for JsNullish

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for JsNumber

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for JsObject

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for JsString

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for JsSymbol

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for MIDIPort

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for MediaDeviceInfo

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for MediaStreamTrack

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for MouseEvent

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for Node

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for NodeList

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for PaymentRequestUpdateEvent

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for PerformanceEntry

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for PerformanceResourceTiming

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for SVGAnimationElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for SVGComponentTransferFunctionElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for SVGElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for SVGGeometryElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for SVGGradientElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for SVGGraphicsElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for SVGTextContentElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for SVGTextPositioningElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for SpeechSynthesisEvent

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for StylePropertyMapReadOnly

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for StyleSheet

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for Text

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for TextTrackCue

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for UIEvent

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for Worklet

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl<W> Into<JsValue> for WritableStream<W>
where W: JsCast,

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for XMLHttpRequestEventTarget

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl JsCast for JsValue

Source§

impl UseInJsCode for JsValue

Source§

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

Source§

impl<'a> ToJs<JsValue> for &'a str

Source§

impl ToJs<JsValue> for bool

Source§

impl ToJs<JsValue> for f32

Source§

impl ToJs<JsValue> for f64

Source§

impl ToJs<JsValue> for i16

Source§

impl ToJs<JsValue> for i32

Source§

impl ToJs<JsValue> for i64

Source§

impl ToJs<JsValue> for i8

Source§

impl ToJs<JsValue> for isize

Source§

impl ToJs<JsValue> for str

Source§

impl ToJs<JsValue> for u16

Source§

impl ToJs<JsValue> for u32

Source§

impl ToJs<JsValue> for u64

Source§

impl ToJs<JsValue> for u8

Source§

impl ToJs<JsValue> for usize

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

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

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

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

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

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

Source§

type Error = 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> ToJs<T> for T
where T: UseInJsCode + ?Sized,