stdweb

Trait ReferenceType

Source
pub trait ReferenceType:
    AsRef<Reference>
    + InstanceOf
    + TryFrom<Value>
    + TryFrom<Reference> {
    // Required method
    unsafe fn from_reference_unchecked(reference: Reference) -> Self;
}
Expand description

A trait for types which wrap a reference to a JavaScript object.

Required Methods§

Source

unsafe fn from_reference_unchecked(reference: Reference) -> Self

Converts a given reference into a concrete reference-like wrapper. Doesn’t do any type checking; highly unsafe to use!

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl ReferenceType for Array

Source§

impl ReferenceType for Object

Source§

impl ReferenceType for AbortError

Source§

impl ReferenceType for DomException

Source§

impl ReferenceType for Error

Source§

impl ReferenceType for HierarchyRequestError

Source§

impl ReferenceType for IndexSizeError

Source§

impl ReferenceType for InvalidAccessError

Source§

impl ReferenceType for InvalidCharacterError

Source§

impl ReferenceType for InvalidStateError

Source§

impl ReferenceType for NotFoundError

Source§

impl ReferenceType for NotSupportedError

Source§

impl ReferenceType for SecurityError

Source§

impl ReferenceType for SyntaxError

Source§

impl ReferenceType for TypeError

Source§

impl ReferenceType for AuxClickEvent

Source§

impl ReferenceType for BeforeUnloadEvent

Source§

impl ReferenceType for BlurEvent

Source§

impl ReferenceType for ChangeEvent

Source§

impl ReferenceType for ClickEvent

Source§

impl ReferenceType for ContextMenuEvent

Source§

impl ReferenceType for DataTransfer

Source§

impl ReferenceType for DataTransferItem

Source§

impl ReferenceType for DataTransferItemList

Source§

impl ReferenceType for DoubleClickEvent

Source§

impl ReferenceType for DragDropEvent

Source§

impl ReferenceType for DragEndEvent

Source§

impl ReferenceType for DragEnterEvent

Source§

impl ReferenceType for DragEvent

Source§

impl ReferenceType for DragExitEvent

Source§

impl ReferenceType for DragLeaveEvent

Source§

impl ReferenceType for DragOverEvent

Source§

impl ReferenceType for DragRelatedEvent

Source§

impl ReferenceType for DragStartEvent

Source§

impl ReferenceType for FocusEvent

Source§

impl ReferenceType for FullscreenChangeEvent

Source§

impl ReferenceType for GamepadConnectedEvent

Source§

impl ReferenceType for GamepadDisconnectedEvent

Source§

impl ReferenceType for GotPointerCaptureEvent

Source§

impl ReferenceType for HashChangeEvent

Source§

impl ReferenceType for InputEvent

Source§

impl ReferenceType for KeyDownEvent

Source§

impl ReferenceType for KeyPressEvent

Source§

impl ReferenceType for KeyUpEvent

Source§

impl ReferenceType for LoadEndEvent

Source§

impl ReferenceType for LoadStartEvent

Source§

impl ReferenceType for LostPointerCaptureEvent

Source§

impl ReferenceType for MouseDownEvent

Source§

impl ReferenceType for MouseEnterEvent

Source§

impl ReferenceType for MouseLeaveEvent

Source§

impl ReferenceType for MouseMoveEvent

Source§

impl ReferenceType for MouseOutEvent

Source§

impl ReferenceType for MouseOverEvent

Source§

impl ReferenceType for MouseUpEvent

Source§

impl ReferenceType for MouseWheelEvent

Source§

impl ReferenceType for PointerCancelEvent

Source§

impl ReferenceType for PointerDownEvent

Source§

impl ReferenceType for PointerEnterEvent

Source§

impl ReferenceType for PointerLeaveEvent

Source§

impl ReferenceType for PointerLockChangeEvent

Source§

impl ReferenceType for PointerLockErrorEvent

Source§

impl ReferenceType for PointerMoveEvent

Source§

impl ReferenceType for PointerOutEvent

Source§

impl ReferenceType for PointerOverEvent

Source§

impl ReferenceType for PointerUpEvent

Source§

impl ReferenceType for PopStateEvent

Source§

impl ReferenceType for ProgressAbortEvent

Source§

impl ReferenceType for ProgressErrorEvent

Source§

impl ReferenceType for ProgressEvent

Source§

impl ReferenceType for ProgressLoadEvent

Source§

impl ReferenceType for ReadyStateChangeEvent

Source§

impl ReferenceType for ResizeEvent

Source§

impl ReferenceType for ResourceAbortEvent

Source§

impl ReferenceType for ResourceErrorEvent

Source§

impl ReferenceType for ResourceLoadEvent

Source§

impl ReferenceType for ScrollEvent

Source§

impl ReferenceType for SelectionChangeEvent

Source§

impl ReferenceType for SlotChangeEvent

Source§

impl ReferenceType for SocketCloseEvent

Source§

impl ReferenceType for SocketErrorEvent

Source§

impl ReferenceType for SocketMessageEvent

Source§

impl ReferenceType for SocketOpenEvent

Source§

impl ReferenceType for SubmitEvent

Source§

impl ReferenceType for TouchCancel

Source§

impl ReferenceType for TouchEnd

Source§

impl ReferenceType for TouchEnter

Source§

impl ReferenceType for TouchEvent

Source§

impl ReferenceType for TouchLeave

Source§

impl ReferenceType for TouchMove

Source§

impl ReferenceType for TouchStart

Source§

impl ReferenceType for UnloadEvent

Source§

impl ReferenceType for CanvasElement

Source§

impl ReferenceType for ImageElement

Source§

impl ReferenceType for InputElement

Source§

impl ReferenceType for OptionElement

Source§

impl ReferenceType for SelectElement

Source§

impl ReferenceType for SlotElement

Source§

impl ReferenceType for TemplateElement

Source§

impl ReferenceType for TextAreaElement

Source§

impl ReferenceType for ArrayBuffer

Source§

impl ReferenceType for Blob

Source§

impl ReferenceType for CanvasGradient

Source§

impl ReferenceType for CanvasPattern

Source§

impl ReferenceType for CanvasRenderingContext2d

Source§

impl ReferenceType for Date

Source§

impl ReferenceType for Document

Source§

impl ReferenceType for DocumentFragment

Source§

impl ReferenceType for Element

Source§

impl ReferenceType for EventTarget

Source§

impl ReferenceType for File

Source§

impl ReferenceType for FileList

Source§

impl ReferenceType for FileReader

Source§

impl ReferenceType for FormData

Source§

impl ReferenceType for Gamepad

Source§

impl ReferenceType for GamepadButton

Source§

impl ReferenceType for History

Source§

impl ReferenceType for HtmlCollection

Source§

impl ReferenceType for HtmlElement

Source§

impl ReferenceType for ImageData

Source§

impl ReferenceType for Location

Source§

impl ReferenceType for MutationObserver

Source§

impl ReferenceType for Node

Source§

impl ReferenceType for NodeList

Source§

impl ReferenceType for Rect

Source§

impl ReferenceType for Selection

Source§

impl ReferenceType for ShadowRoot

Source§

impl ReferenceType for Storage

Source§

impl ReferenceType for StringMap

Source§

impl ReferenceType for TextMetrics

Source§

impl ReferenceType for TextNode

Source§

impl ReferenceType for TokenList

Source§

impl ReferenceType for Touch

Source§

impl ReferenceType for WebSocket

Source§

impl ReferenceType for Window

Source§

impl ReferenceType for XmlHttpRequest

Source§

impl<T: ArrayKind> ReferenceType for TypedArray<T>