Struct stdweb::Reference
[−]
[src]
#[repr(C)]pub struct Reference(_);
A type representing a reference to a JavaScript value.
Methods
impl Reference
[src]
fn downcast<T: FromReference>(self) -> Option<T>
[src]
Converts this reference into the given type T
; checks whenever the reference
is really of type T
and returns None
if it's not.
Trait Implementations
impl PartialEq for Reference
[src]
fn eq(&self, __arg_0: &Reference) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Reference) -> bool
[src]
This method tests for !=
.
impl Eq for Reference
[src]
impl Debug for Reference
[src]
impl Clone for Reference
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Drop for Reference
[src]
impl AsRef<Reference> for Reference
[src]
impl TryFrom<Reference> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: Reference) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl<'a> TryFrom<&'a Reference> for &'a Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: &'a Reference) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl PartialEq<Value> for Reference
[src]
fn eq(&self, right: &Value) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a> PartialEq<&'a Value> for Reference
[src]
fn eq(&self, right: &&'a Value) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a> PartialEq<Value> for &'a Reference
[src]
fn eq(&self, right: &Value) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl TryFrom<Value> for Reference
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl<'a> TryFrom<&'a Value> for &'a Reference
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &'a Value) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<Document> for Reference
[src]
impl TryFrom<Document> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Document) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<Window> for Reference
[src]
impl TryFrom<Window> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Window) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<Event> for Reference
[src]
impl TryFrom<Event> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Event) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<ChangeEvent> for Reference
[src]
fn from(value: ChangeEvent) -> Self
[src]
Performs the conversion.
impl TryFrom<ChangeEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: ChangeEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<UiEvent> for Reference
[src]
impl TryFrom<UiEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: UiEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<LoadEvent> for Reference
[src]
impl TryFrom<LoadEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: LoadEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<MouseEvent> for Reference
[src]
impl TryFrom<MouseEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: MouseEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<ClickEvent> for Reference
[src]
fn from(value: ClickEvent) -> Self
[src]
Performs the conversion.
impl TryFrom<ClickEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: ClickEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<DoubleClickEvent> for Reference
[src]
fn from(value: DoubleClickEvent) -> Self
[src]
Performs the conversion.
impl TryFrom<DoubleClickEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: DoubleClickEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<KeyboardEvent> for Reference
[src]
impl TryFrom<KeyboardEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: KeyboardEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<KeypressEvent> for Reference
[src]
fn from(value: KeypressEvent) -> Self
[src]
Performs the conversion.
impl TryFrom<KeypressEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: KeypressEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<FocusRelatedEvent> for Reference
[src]
impl TryFrom<FocusRelatedEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: FocusRelatedEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<FocusEvent> for Reference
[src]
fn from(value: FocusEvent) -> Self
[src]
Performs the conversion.
impl TryFrom<FocusEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: FocusEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<BlurEvent> for Reference
[src]
impl TryFrom<BlurEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: BlurEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<HashChangeEvent> for Reference
[src]
fn from(value: HashChangeEvent) -> Self
[src]
Performs the conversion.
impl TryFrom<HashChangeEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: HashChangeEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<ProgressRelatedEvent> for Reference
[src]
impl TryFrom<ProgressRelatedEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: ProgressRelatedEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<ProgressEvent> for Reference
[src]
fn from(value: ProgressEvent) -> Self
[src]
Performs the conversion.
impl TryFrom<ProgressEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: ProgressEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<LoadStartEvent> for Reference
[src]
fn from(value: LoadStartEvent) -> Self
[src]
Performs the conversion.
impl TryFrom<LoadStartEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: LoadStartEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<LoadEndEvent> for Reference
[src]
fn from(value: LoadEndEvent) -> Self
[src]
Performs the conversion.
impl TryFrom<LoadEndEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: LoadEndEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<AbortEvent> for Reference
[src]
fn from(value: AbortEvent) -> Self
[src]
Performs the conversion.
impl TryFrom<AbortEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: AbortEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<ErrorEvent> for Reference
[src]
fn from(value: ErrorEvent) -> Self
[src]
Performs the conversion.
impl TryFrom<ErrorEvent> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: ErrorEvent) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<EventTarget> for Reference
[src]
fn from(value: EventTarget) -> Self
[src]
Performs the conversion.
impl TryFrom<EventTarget> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: EventTarget) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<Node> for Reference
[src]
impl TryFrom<Node> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Node) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<Element> for Reference
[src]
impl TryFrom<Element> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Element) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<HtmlElement> for Reference
[src]
fn from(value: HtmlElement) -> Self
[src]
Performs the conversion.
impl TryFrom<HtmlElement> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: HtmlElement) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<ImageElement> for Reference
[src]
fn from(value: ImageElement) -> Self
[src]
Performs the conversion.
impl TryFrom<ImageElement> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: ImageElement) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<InputElement> for Reference
[src]
fn from(value: InputElement) -> Self
[src]
Performs the conversion.
impl TryFrom<InputElement> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: InputElement) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<TokenList> for Reference
[src]
impl TryFrom<TokenList> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: TokenList) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<TextNode> for Reference
[src]
impl TryFrom<TextNode> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: TextNode) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<NodeList> for Reference
[src]
impl TryFrom<NodeList> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: NodeList) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<StringMap> for Reference
[src]
impl TryFrom<StringMap> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: StringMap) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<Location> for Reference
[src]
impl TryFrom<Location> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Location) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<Storage> for Reference
[src]
impl TryFrom<Storage> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Storage) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<Blob> for Reference
[src]
impl TryFrom<Blob> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Blob) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<File> for Reference
[src]
impl TryFrom<File> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: File) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<FileList> for Reference
[src]
impl TryFrom<FileList> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: FileList) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<FileReader> for Reference
[src]
impl TryFrom<FileReader> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: FileReader) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl From<ArrayBuffer> for Reference
[src]
fn from(value: ArrayBuffer) -> Self
[src]
Performs the conversion.
impl TryFrom<ArrayBuffer> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: ArrayBuffer) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl<T> From<TypedArray<T>> for Reference where
T: ArrayKind,
[src]
T: ArrayKind,
fn from(value: TypedArray<T>) -> Self
[src]
Performs the conversion.
impl<T> TryFrom<TypedArray<T>> for Reference where
T: ArrayKind,
[src]
T: ArrayKind,