[−][src]Trait screeps::traits::TryFrom
Attempt to construct Self via a conversion.
This definition is only temporary until Rust's TryFrom is stabilized.
Associated Types
type Error
The type returned in the event of a conversion error.
Required methods
Loading content...Implementations on Foreign Types
impl TryFrom<PointerDownEvent> for Reference[src]
type Error = Void
fn try_from(
value: PointerDownEvent
) -> Result<Reference, <Reference as TryFrom<PointerDownEvent>>::Error>[src]
value: PointerDownEvent
) -> Result<Reference, <Reference as TryFrom<PointerDownEvent>>::Error>
impl TryFrom<Number> for u16[src]
type Error = ConversionError
fn try_from(number: Number) -> Result<u16, <u16 as TryFrom<Number>>::Error>[src]
impl TryFrom<TemplateElement> for Reference[src]
type Error = Void
fn try_from(
value: TemplateElement
) -> Result<Reference, <Reference as TryFrom<TemplateElement>>::Error>[src]
value: TemplateElement
) -> Result<Reference, <Reference as TryFrom<TemplateElement>>::Error>
impl TryFrom<UiEvent> for Reference[src]
type Error = Void
fn try_from(
value: UiEvent
) -> Result<Reference, <Reference as TryFrom<UiEvent>>::Error>[src]
value: UiEvent
) -> Result<Reference, <Reference as TryFrom<UiEvent>>::Error>
impl TryFrom<StringMap> for Reference[src]
type Error = Void
fn try_from(
value: StringMap
) -> Result<Reference, <Reference as TryFrom<StringMap>>::Error>[src]
value: StringMap
) -> Result<Reference, <Reference as TryFrom<StringMap>>::Error>
impl<'a, T> TryFrom<&'a mut Serde<T>> for Value where
T: Serialize, [src]
T: Serialize,
type Error = ConversionError
fn try_from(
value: &'a mut Serde<T>
) -> Result<Value, <Value as TryFrom<&'a mut Serde<T>>>::Error>[src]
value: &'a mut Serde<T>
) -> Result<Value, <Value as TryFrom<&'a mut Serde<T>>>::Error>
impl TryFrom<MouseEvent> for Reference[src]
type Error = Void
fn try_from(
value: MouseEvent
) -> Result<Reference, <Reference as TryFrom<MouseEvent>>::Error>[src]
value: MouseEvent
) -> Result<Reference, <Reference as TryFrom<MouseEvent>>::Error>
impl TryFrom<MutationObserver> for Reference[src]
type Error = Void
fn try_from(
value: MutationObserver
) -> Result<Reference, <Reference as TryFrom<MutationObserver>>::Error>[src]
value: MutationObserver
) -> Result<Reference, <Reference as TryFrom<MutationObserver>>::Error>
impl TryFrom<ChangeEvent> for Reference[src]
type Error = Void
fn try_from(
value: ChangeEvent
) -> Result<Reference, <Reference as TryFrom<ChangeEvent>>::Error>[src]
value: ChangeEvent
) -> Result<Reference, <Reference as TryFrom<ChangeEvent>>::Error>
impl TryFrom<ProgressEvent> for Reference[src]
type Error = Void
fn try_from(
value: ProgressEvent
) -> Result<Reference, <Reference as TryFrom<ProgressEvent>>::Error>[src]
value: ProgressEvent
) -> Result<Reference, <Reference as TryFrom<ProgressEvent>>::Error>
impl TryFrom<Value> for Option<String>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<String>, <Option<String> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<String>, <Option<String> as TryFrom<Value>>::Error>
impl TryFrom<ProgressRelatedEvent> for Reference[src]
type Error = Void
fn try_from(
value: ProgressRelatedEvent
) -> Result<Reference, <Reference as TryFrom<ProgressRelatedEvent>>::Error>[src]
value: ProgressRelatedEvent
) -> Result<Reference, <Reference as TryFrom<ProgressRelatedEvent>>::Error>
impl TryFrom<i8> for Number[src]
impl TryFrom<Undefined> for Value[src]
type Error = Void
fn try_from(
source: Undefined
) -> Result<Value, <Value as TryFrom<Undefined>>::Error>[src]
source: Undefined
) -> Result<Value, <Value as TryFrom<Undefined>>::Error>
impl<V> TryFrom<Value> for Option<HashMap<String, V, RandomState>> where
V: TryFrom<Value, Error = ConversionError>, [src]
V: TryFrom<Value, Error = ConversionError>,
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<HashMap<String, V, RandomState>>, <Option<HashMap<String, V, RandomState>> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<HashMap<String, V, RandomState>>, <Option<HashMap<String, V, RandomState>> as TryFrom<Value>>::Error>
impl TryFrom<Value> for i16[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<i16, <i16 as TryFrom<Value>>::Error>[src]
impl TryFrom<i8> for Value[src]
impl TryFrom<NoModificationAllowedError> for Reference[src]
type Error = Void
fn try_from(
value: NoModificationAllowedError
) -> Result<Reference, <Reference as TryFrom<NoModificationAllowedError>>::Error>[src]
value: NoModificationAllowedError
) -> Result<Reference, <Reference as TryFrom<NoModificationAllowedError>>::Error>
impl TryFrom<SocketOpenEvent> for Reference[src]
type Error = Void
fn try_from(
value: SocketOpenEvent
) -> Result<Reference, <Reference as TryFrom<SocketOpenEvent>>::Error>[src]
value: SocketOpenEvent
) -> Result<Reference, <Reference as TryFrom<SocketOpenEvent>>::Error>
impl TryFrom<LostPointerCaptureEvent> for Reference[src]
type Error = Void
fn try_from(
value: LostPointerCaptureEvent
) -> Result<Reference, <Reference as TryFrom<LostPointerCaptureEvent>>::Error>[src]
value: LostPointerCaptureEvent
) -> Result<Reference, <Reference as TryFrom<LostPointerCaptureEvent>>::Error>
impl TryFrom<SlotChangeEvent> for Reference[src]
type Error = Void
fn try_from(
value: SlotChangeEvent
) -> Result<Reference, <Reference as TryFrom<SlotChangeEvent>>::Error>[src]
value: SlotChangeEvent
) -> Result<Reference, <Reference as TryFrom<SlotChangeEvent>>::Error>
impl TryFrom<PointerLockChangeEvent> for Reference[src]
type Error = Void
fn try_from(
value: PointerLockChangeEvent
) -> Result<Reference, <Reference as TryFrom<PointerLockChangeEvent>>::Error>[src]
value: PointerLockChangeEvent
) -> Result<Reference, <Reference as TryFrom<PointerLockChangeEvent>>::Error>
impl<K, V> TryFrom<BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, [src]
K: AsRef<str>,
V: JsSerialize,
type Error = Void
fn try_from(
source: BTreeMap<K, V>
) -> Result<Object, <Object as TryFrom<BTreeMap<K, V>>>::Error>[src]
source: BTreeMap<K, V>
) -> Result<Object, <Object as TryFrom<BTreeMap<K, V>>>::Error>
impl TryFrom<Number> for i8[src]
type Error = ConversionError
fn try_from(number: Number) -> Result<i8, <i8 as TryFrom<Number>>::Error>[src]
impl TryFrom<i32> for Value[src]
impl TryFrom<usize> for Number[src]
type Error = ConversionError
fn try_from(value: usize) -> Result<Number, <Number as TryFrom<usize>>::Error>[src]
impl TryFrom<bool> for Value[src]
impl<'_r> TryFrom<&'_r Reference> for Array[src]
type Error = ConversionError
fn try_from(
reference: &Reference
) -> Result<Array, <Array as TryFrom<&'_r Reference>>::Error>[src]
reference: &Reference
) -> Result<Array, <Array as TryFrom<&'_r Reference>>::Error>
impl TryFrom<TextMetrics> for Reference[src]
type Error = Void
fn try_from(
value: TextMetrics
) -> Result<Reference, <Reference as TryFrom<TextMetrics>>::Error>[src]
value: TextMetrics
) -> Result<Reference, <Reference as TryFrom<TextMetrics>>::Error>
impl<E, V> TryFrom<Value> for HashMap<String, V, RandomState> where
E: Into<ConversionError>,
V: TryFrom<Value, Error = E>, [src]
E: Into<ConversionError>,
V: TryFrom<Value, Error = E>,
type Error = ConversionError
fn try_from(
value: Value
) -> Result<HashMap<String, V, RandomState>, <HashMap<String, V, RandomState> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<HashMap<String, V, RandomState>, <HashMap<String, V, RandomState> as TryFrom<Value>>::Error>
impl TryFrom<MouseMoveEvent> for Reference[src]
type Error = Void
fn try_from(
value: MouseMoveEvent
) -> Result<Reference, <Reference as TryFrom<MouseMoveEvent>>::Error>[src]
value: MouseMoveEvent
) -> Result<Reference, <Reference as TryFrom<MouseMoveEvent>>::Error>
impl TryFrom<GamepadConnectedEvent> for Reference[src]
type Error = Void
fn try_from(
value: GamepadConnectedEvent
) -> Result<Reference, <Reference as TryFrom<GamepadConnectedEvent>>::Error>[src]
value: GamepadConnectedEvent
) -> Result<Reference, <Reference as TryFrom<GamepadConnectedEvent>>::Error>
impl TryFrom<f64> for Value[src]
impl TryFrom<DomException> for Reference[src]
type Error = Void
fn try_from(
value: DomException
) -> Result<Reference, <Reference as TryFrom<DomException>>::Error>[src]
value: DomException
) -> Result<Reference, <Reference as TryFrom<DomException>>::Error>
impl TryFrom<DragEvent> for Reference[src]
type Error = Void
fn try_from(
value: DragEvent
) -> Result<Reference, <Reference as TryFrom<DragEvent>>::Error>[src]
value: DragEvent
) -> Result<Reference, <Reference as TryFrom<DragEvent>>::Error>
impl TryFrom<Value> for String[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<String, <String as TryFrom<Value>>::Error>[src]
impl TryFrom<MouseEnterEvent> for Reference[src]
type Error = Void
fn try_from(
value: MouseEnterEvent
) -> Result<Reference, <Reference as TryFrom<MouseEnterEvent>>::Error>[src]
value: MouseEnterEvent
) -> Result<Reference, <Reference as TryFrom<MouseEnterEvent>>::Error>
impl TryFrom<Document> for Reference[src]
type Error = Void
fn try_from(
value: Document
) -> Result<Reference, <Reference as TryFrom<Document>>::Error>[src]
value: Document
) -> Result<Reference, <Reference as TryFrom<Document>>::Error>
impl TryFrom<Storage> for Reference[src]
type Error = Void
fn try_from(
value: Storage
) -> Result<Reference, <Reference as TryFrom<Storage>>::Error>[src]
value: Storage
) -> Result<Reference, <Reference as TryFrom<Storage>>::Error>
impl TryFrom<Value> for Reference[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Reference, <Reference as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Reference, <Reference as TryFrom<Value>>::Error>
impl TryFrom<PopStateEvent> for Reference[src]
type Error = Void
fn try_from(
value: PopStateEvent
) -> Result<Reference, <Reference as TryFrom<PopStateEvent>>::Error>[src]
value: PopStateEvent
) -> Result<Reference, <Reference as TryFrom<PopStateEvent>>::Error>
impl TryFrom<Value> for Option<u32>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<u32>, <Option<u32> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<u32>, <Option<u32> as TryFrom<Value>>::Error>
impl TryFrom<DragLeaveEvent> for Reference[src]
type Error = Void
fn try_from(
value: DragLeaveEvent
) -> Result<Reference, <Reference as TryFrom<DragLeaveEvent>>::Error>[src]
value: DragLeaveEvent
) -> Result<Reference, <Reference as TryFrom<DragLeaveEvent>>::Error>
impl<T> TryFrom<Serde<T>> for Value where
T: Serialize, [src]
T: Serialize,
type Error = ConversionError
fn try_from(
value: Serde<T>
) -> Result<Value, <Value as TryFrom<Serde<T>>>::Error>[src]
value: Serde<T>
) -> Result<Value, <Value as TryFrom<Serde<T>>>::Error>
impl TryFrom<GotPointerCaptureEvent> for Reference[src]
type Error = Void
fn try_from(
value: GotPointerCaptureEvent
) -> Result<Reference, <Reference as TryFrom<GotPointerCaptureEvent>>::Error>[src]
value: GotPointerCaptureEvent
) -> Result<Reference, <Reference as TryFrom<GotPointerCaptureEvent>>::Error>
impl TryFrom<SelectElement> for Reference[src]
type Error = Void
fn try_from(
value: SelectElement
) -> Result<Reference, <Reference as TryFrom<SelectElement>>::Error>[src]
value: SelectElement
) -> Result<Reference, <Reference as TryFrom<SelectElement>>::Error>
impl<T> TryFrom<Vec<T>> for Value where
T: JsSerialize, [src]
T: JsSerialize,
type Error = Void
fn try_from(source: Vec<T>) -> Result<Value, <Value as TryFrom<Vec<T>>>::Error>[src]
impl TryFrom<Element> for Reference[src]
type Error = Void
fn try_from(
value: Element
) -> Result<Reference, <Reference as TryFrom<Element>>::Error>[src]
value: Element
) -> Result<Reference, <Reference as TryFrom<Element>>::Error>
impl TryFrom<Value> for Option<i16>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<i16>, <Option<i16> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<i16>, <Option<i16> as TryFrom<Value>>::Error>
impl TryFrom<KeyboardEvent> for Reference[src]
type Error = Void
fn try_from(
value: KeyboardEvent
) -> Result<Reference, <Reference as TryFrom<KeyboardEvent>>::Error>[src]
value: KeyboardEvent
) -> Result<Reference, <Reference as TryFrom<KeyboardEvent>>::Error>
impl TryFrom<i16> for Number[src]
impl TryFrom<AbortError> for Reference[src]
type Error = Void
fn try_from(
value: AbortError
) -> Result<Reference, <Reference as TryFrom<AbortError>>::Error>[src]
value: AbortError
) -> Result<Reference, <Reference as TryFrom<AbortError>>::Error>
impl TryFrom<Null> for Value[src]
impl TryFrom<FileList> for Reference[src]
type Error = Void
fn try_from(
value: FileList
) -> Result<Reference, <Reference as TryFrom<FileList>>::Error>[src]
value: FileList
) -> Result<Reference, <Reference as TryFrom<FileList>>::Error>
impl TryFrom<Value> for u8[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<u8, <u8 as TryFrom<Value>>::Error>[src]
impl TryFrom<SocketCloseEvent> for Reference[src]
type Error = Void
fn try_from(
value: SocketCloseEvent
) -> Result<Reference, <Reference as TryFrom<SocketCloseEvent>>::Error>[src]
value: SocketCloseEvent
) -> Result<Reference, <Reference as TryFrom<SocketCloseEvent>>::Error>
impl<E, V> TryFrom<Object> for HashMap<String, V, RandomState> where
E: Into<ConversionError>,
V: TryFrom<Value, Error = E>, [src]
E: Into<ConversionError>,
V: TryFrom<Value, Error = E>,
type Error = ConversionError
fn try_from(
object: Object
) -> Result<HashMap<String, V, RandomState>, <HashMap<String, V, RandomState> as TryFrom<Object>>::Error>[src]
object: Object
) -> Result<HashMap<String, V, RandomState>, <HashMap<String, V, RandomState> as TryFrom<Object>>::Error>
impl TryFrom<InvalidCharacterError> for Reference[src]
type Error = Void
fn try_from(
value: InvalidCharacterError
) -> Result<Reference, <Reference as TryFrom<InvalidCharacterError>>::Error>[src]
value: InvalidCharacterError
) -> Result<Reference, <Reference as TryFrom<InvalidCharacterError>>::Error>
impl TryFrom<TouchStart> for Reference[src]
type Error = Void
fn try_from(
value: TouchStart
) -> Result<Reference, <Reference as TryFrom<TouchStart>>::Error>[src]
value: TouchStart
) -> Result<Reference, <Reference as TryFrom<TouchStart>>::Error>
impl TryFrom<GamepadDisconnectedEvent> for Reference[src]
type Error = Void
fn try_from(
value: GamepadDisconnectedEvent
) -> Result<Reference, <Reference as TryFrom<GamepadDisconnectedEvent>>::Error>[src]
value: GamepadDisconnectedEvent
) -> Result<Reference, <Reference as TryFrom<GamepadDisconnectedEvent>>::Error>
impl TryFrom<Value> for i64[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<i64, <i64 as TryFrom<Value>>::Error>[src]
impl TryFrom<MouseLeaveEvent> for Reference[src]
type Error = Void
fn try_from(
value: MouseLeaveEvent
) -> Result<Reference, <Reference as TryFrom<MouseLeaveEvent>>::Error>[src]
value: MouseLeaveEvent
) -> Result<Reference, <Reference as TryFrom<MouseLeaveEvent>>::Error>
impl<E, T> TryFrom<Value> for Vec<T> where
E: Into<ConversionError>,
T: TryFrom<Value, Error = E>, [src]
E: Into<ConversionError>,
T: TryFrom<Value, Error = E>,
type Error = ConversionError
fn try_from(value: Value) -> Result<Vec<T>, <Vec<T> as TryFrom<Value>>::Error>[src]
impl TryFrom<Reference> for Value[src]
type Error = Void
fn try_from(
source: Reference
) -> Result<Value, <Value as TryFrom<Reference>>::Error>[src]
source: Reference
) -> Result<Value, <Value as TryFrom<Reference>>::Error>
impl TryFrom<IndexSizeError> for Reference[src]
type Error = Void
fn try_from(
value: IndexSizeError
) -> Result<Reference, <Reference as TryFrom<IndexSizeError>>::Error>[src]
value: IndexSizeError
) -> Result<Reference, <Reference as TryFrom<IndexSizeError>>::Error>
impl TryFrom<Number> for u8[src]
type Error = ConversionError
fn try_from(number: Number) -> Result<u8, <u8 as TryFrom<Number>>::Error>[src]
impl<'a> TryFrom<&'a char> for Value[src]
type Error = Void
fn try_from(
source: &'a char
) -> Result<Value, <Value as TryFrom<&'a char>>::Error>[src]
source: &'a char
) -> Result<Value, <Value as TryFrom<&'a char>>::Error>
impl TryFrom<Value> for Option<i8>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<i8>, <Option<i8> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<i8>, <Option<i8> as TryFrom<Value>>::Error>
impl TryFrom<EventTarget> for Reference[src]
type Error = Void
fn try_from(
value: EventTarget
) -> Result<Reference, <Reference as TryFrom<EventTarget>>::Error>[src]
value: EventTarget
) -> Result<Reference, <Reference as TryFrom<EventTarget>>::Error>
impl TryFrom<ProgressAbortEvent> for Reference[src]
type Error = Void
fn try_from(
value: ProgressAbortEvent
) -> Result<Reference, <Reference as TryFrom<ProgressAbortEvent>>::Error>[src]
value: ProgressAbortEvent
) -> Result<Reference, <Reference as TryFrom<ProgressAbortEvent>>::Error>
impl TryFrom<u64> for Value[src]
type Error = <Number as TryFrom<u64>>::Error
fn try_from(value: u64) -> Result<Value, <Value as TryFrom<u64>>::Error>[src]
impl TryFrom<u32> for Value[src]
impl<E, V> TryFrom<Array> for Vec<V> where
E: Into<ConversionError>,
V: TryFrom<Value, Error = E>, [src]
E: Into<ConversionError>,
V: TryFrom<Value, Error = E>,
type Error = ConversionError
fn try_from(array: Array) -> Result<Vec<V>, <Vec<V> as TryFrom<Array>>::Error>[src]
impl TryFrom<TokenList> for Reference[src]
type Error = Void
fn try_from(
value: TokenList
) -> Result<Reference, <Reference as TryFrom<TokenList>>::Error>[src]
value: TokenList
) -> Result<Reference, <Reference as TryFrom<TokenList>>::Error>
impl<T> TryFrom<Vec<T>> for Array where
T: JsSerialize, [src]
T: JsSerialize,
type Error = Void
fn try_from(source: Vec<T>) -> Result<Array, <Array as TryFrom<Vec<T>>>::Error>[src]
impl TryFrom<PointerUpEvent> for Reference[src]
type Error = Void
fn try_from(
value: PointerUpEvent
) -> Result<Reference, <Reference as TryFrom<PointerUpEvent>>::Error>[src]
value: PointerUpEvent
) -> Result<Reference, <Reference as TryFrom<PointerUpEvent>>::Error>
impl TryFrom<Reference> for Array[src]
type Error = ConversionError
fn try_from(
reference: Reference
) -> Result<Array, <Array as TryFrom<Reference>>::Error>[src]
reference: Reference
) -> Result<Array, <Array as TryFrom<Reference>>::Error>
impl TryFrom<DocumentFragment> for Reference[src]
type Error = Void
fn try_from(
value: DocumentFragment
) -> Result<Reference, <Reference as TryFrom<DocumentFragment>>::Error>[src]
value: DocumentFragment
) -> Result<Reference, <Reference as TryFrom<DocumentFragment>>::Error>
impl TryFrom<Touch> for Reference[src]
type Error = Void
fn try_from(
value: Touch
) -> Result<Reference, <Reference as TryFrom<Touch>>::Error>[src]
value: Touch
) -> Result<Reference, <Reference as TryFrom<Touch>>::Error>
impl<'a, T> TryFrom<&'a mut [T]> for Value where
T: JsSerialize, [src]
T: JsSerialize,
type Error = Void
fn try_from(
source: &'a mut [T]
) -> Result<Value, <Value as TryFrom<&'a mut [T]>>::Error>[src]
source: &'a mut [T]
) -> Result<Value, <Value as TryFrom<&'a mut [T]>>::Error>
impl TryFrom<LoadStartEvent> for Reference[src]
type Error = Void
fn try_from(
value: LoadStartEvent
) -> Result<Reference, <Reference as TryFrom<LoadStartEvent>>::Error>[src]
value: LoadStartEvent
) -> Result<Reference, <Reference as TryFrom<LoadStartEvent>>::Error>
impl TryFrom<Promise> for Reference[src]
type Error = Void
fn try_from(
value: Promise
) -> Result<Reference, <Reference as TryFrom<Promise>>::Error>[src]
value: Promise
) -> Result<Reference, <Reference as TryFrom<Promise>>::Error>
impl TryFrom<ClickEvent> for Reference[src]
type Error = Void
fn try_from(
value: ClickEvent
) -> Result<Reference, <Reference as TryFrom<ClickEvent>>::Error>[src]
value: ClickEvent
) -> Result<Reference, <Reference as TryFrom<ClickEvent>>::Error>
impl<T> TryFrom<Value> for Option<T> where
T: TryFrom<Value, Error = ConversionError> + AsRef<Reference>, [src]
T: TryFrom<Value, Error = ConversionError> + AsRef<Reference>,
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<T>, <Option<T> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<T>, <Option<T> as TryFrom<Value>>::Error>
impl<'a> TryFrom<&'a mut Undefined> for Value[src]
type Error = Void
fn try_from(
source: &'a mut Undefined
) -> Result<Value, <Value as TryFrom<&'a mut Undefined>>::Error>[src]
source: &'a mut Undefined
) -> Result<Value, <Value as TryFrom<&'a mut Undefined>>::Error>
impl TryFrom<Number> for i32[src]
type Error = ConversionError
fn try_from(number: Number) -> Result<i32, <i32 as TryFrom<Number>>::Error>[src]
impl TryFrom<Value> for u32[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<u32, <u32 as TryFrom<Value>>::Error>[src]
impl TryFrom<String> for Value[src]
type Error = Void
fn try_from(source: String) -> Result<Value, <Value as TryFrom<String>>::Error>[src]
impl TryFrom<OptionElement> for Reference[src]
type Error = Void
fn try_from(
value: OptionElement
) -> Result<Reference, <Reference as TryFrom<OptionElement>>::Error>[src]
value: OptionElement
) -> Result<Reference, <Reference as TryFrom<OptionElement>>::Error>
impl TryFrom<CanvasPattern> for Reference[src]
type Error = Void
fn try_from(
value: CanvasPattern
) -> Result<Reference, <Reference as TryFrom<CanvasPattern>>::Error>[src]
value: CanvasPattern
) -> Result<Reference, <Reference as TryFrom<CanvasPattern>>::Error>
impl TryFrom<Window> for Reference[src]
type Error = Void
fn try_from(
value: Window
) -> Result<Reference, <Reference as TryFrom<Window>>::Error>[src]
value: Window
) -> Result<Reference, <Reference as TryFrom<Window>>::Error>
impl<'a, K, V> TryFrom<&'a mut BTreeMap<K, V>> for Value where
K: AsRef<str>,
V: JsSerialize, [src]
K: AsRef<str>,
V: JsSerialize,
type Error = Void
fn try_from(
source: &'a mut BTreeMap<K, V>
) -> Result<Value, <Value as TryFrom<&'a mut BTreeMap<K, V>>>::Error>[src]
source: &'a mut BTreeMap<K, V>
) -> Result<Value, <Value as TryFrom<&'a mut BTreeMap<K, V>>>::Error>
impl TryFrom<DragEnterEvent> for Reference[src]
type Error = Void
fn try_from(
value: DragEnterEvent
) -> Result<Reference, <Reference as TryFrom<DragEnterEvent>>::Error>[src]
value: DragEnterEvent
) -> Result<Reference, <Reference as TryFrom<DragEnterEvent>>::Error>
impl TryFrom<MouseWheelEvent> for Reference[src]
type Error = Void
fn try_from(
value: MouseWheelEvent
) -> Result<Reference, <Reference as TryFrom<MouseWheelEvent>>::Error>[src]
value: MouseWheelEvent
) -> Result<Reference, <Reference as TryFrom<MouseWheelEvent>>::Error>
impl TryFrom<u16> for Number[src]
impl<'a> TryFrom<&'a Value> for &'a Reference[src]
type Error = ConversionError
fn try_from(
value: &'a Value
) -> Result<&'a Reference, <&'a Reference as TryFrom<&'a Value>>::Error>[src]
value: &'a Value
) -> Result<&'a Reference, <&'a Reference as TryFrom<&'a Value>>::Error>
impl TryFrom<DragRelatedEvent> for Reference[src]
type Error = Void
fn try_from(
value: DragRelatedEvent
) -> Result<Reference, <Reference as TryFrom<DragRelatedEvent>>::Error>[src]
value: DragRelatedEvent
) -> Result<Reference, <Reference as TryFrom<DragRelatedEvent>>::Error>
impl<'a, K, V> TryFrom<&'a mut BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, [src]
K: AsRef<str>,
V: JsSerialize,
type Error = Void
fn try_from(
source: &'a mut BTreeMap<K, V>
) -> Result<Object, <Object as TryFrom<&'a mut BTreeMap<K, V>>>::Error>[src]
source: &'a mut BTreeMap<K, V>
) -> Result<Object, <Object as TryFrom<&'a mut BTreeMap<K, V>>>::Error>
impl TryFrom<BlurEvent> for Reference[src]
type Error = Void
fn try_from(
value: BlurEvent
) -> Result<Reference, <Reference as TryFrom<BlurEvent>>::Error>[src]
value: BlurEvent
) -> Result<Reference, <Reference as TryFrom<BlurEvent>>::Error>
impl TryFrom<ProgressErrorEvent> for Reference[src]
type Error = Void
fn try_from(
value: ProgressErrorEvent
) -> Result<Reference, <Reference as TryFrom<ProgressErrorEvent>>::Error>[src]
value: ProgressErrorEvent
) -> Result<Reference, <Reference as TryFrom<ProgressErrorEvent>>::Error>
impl<'a> TryFrom<&'a mut bool> for Value[src]
type Error = Void
fn try_from(
source: &'a mut bool
) -> Result<Value, <Value as TryFrom<&'a mut bool>>::Error>[src]
source: &'a mut bool
) -> Result<Value, <Value as TryFrom<&'a mut bool>>::Error>
impl<'a> TryFrom<&'a str> for Value[src]
type Error = Void
fn try_from(
source: &'a str
) -> Result<Value, <Value as TryFrom<&'a str>>::Error>[src]
source: &'a str
) -> Result<Value, <Value as TryFrom<&'a str>>::Error>
impl TryFrom<InputEvent> for Reference[src]
type Error = Void
fn try_from(
value: InputEvent
) -> Result<Reference, <Reference as TryFrom<InputEvent>>::Error>[src]
value: InputEvent
) -> Result<Reference, <Reference as TryFrom<InputEvent>>::Error>
impl TryFrom<Value> for u64[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<u64, <u64 as TryFrom<Value>>::Error>[src]
impl TryFrom<Date> for Reference[src]
type Error = Void
fn try_from(
value: Date
) -> Result<Reference, <Reference as TryFrom<Date>>::Error>[src]
value: Date
) -> Result<Reference, <Reference as TryFrom<Date>>::Error>
impl TryFrom<Value> for bool[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<bool, <bool as TryFrom<Value>>::Error>[src]
impl TryFrom<LoadEndEvent> for Reference[src]
type Error = Void
fn try_from(
value: LoadEndEvent
) -> Result<Reference, <Reference as TryFrom<LoadEndEvent>>::Error>[src]
value: LoadEndEvent
) -> Result<Reference, <Reference as TryFrom<LoadEndEvent>>::Error>
impl<T> TryFrom<Value> for Option<Vec<T>> where
T: TryFrom<Value, Error = ConversionError>, [src]
T: TryFrom<Value, Error = ConversionError>,
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<Vec<T>>, <Option<Vec<T>> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<Vec<T>>, <Option<Vec<T>> as TryFrom<Value>>::Error>
impl TryFrom<TextAreaElement> for Reference[src]
type Error = Void
fn try_from(
value: TextAreaElement
) -> Result<Reference, <Reference as TryFrom<TextAreaElement>>::Error>[src]
value: TextAreaElement
) -> Result<Reference, <Reference as TryFrom<TextAreaElement>>::Error>
impl TryFrom<CanvasGradient> for Reference[src]
type Error = Void
fn try_from(
value: CanvasGradient
) -> Result<Reference, <Reference as TryFrom<CanvasGradient>>::Error>[src]
value: CanvasGradient
) -> Result<Reference, <Reference as TryFrom<CanvasGradient>>::Error>
impl TryFrom<DataTransferItemList> for Reference[src]
type Error = Void
fn try_from(
value: DataTransferItemList
) -> Result<Reference, <Reference as TryFrom<DataTransferItemList>>::Error>[src]
value: DataTransferItemList
) -> Result<Reference, <Reference as TryFrom<DataTransferItemList>>::Error>
impl TryFrom<Value> for Value[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<Value, <Value as TryFrom<Value>>::Error>[src]
impl TryFrom<f32> for Number[src]
impl<'a> TryFrom<&'a mut char> for Value[src]
type Error = Void
fn try_from(
source: &'a mut char
) -> Result<Value, <Value as TryFrom<&'a mut char>>::Error>[src]
source: &'a mut char
) -> Result<Value, <Value as TryFrom<&'a mut char>>::Error>
impl TryFrom<ScrollEvent> for Reference[src]
type Error = Void
fn try_from(
value: ScrollEvent
) -> Result<Reference, <Reference as TryFrom<ScrollEvent>>::Error>[src]
value: ScrollEvent
) -> Result<Reference, <Reference as TryFrom<ScrollEvent>>::Error>
impl TryFrom<f64> for Number[src]
impl TryFrom<Rect> for Reference[src]
type Error = Void
fn try_from(
value: Rect
) -> Result<Reference, <Reference as TryFrom<Rect>>::Error>[src]
value: Rect
) -> Result<Reference, <Reference as TryFrom<Rect>>::Error>
impl<'a, T> TryFrom<&'a mut Vec<T>> for Value where
T: JsSerialize, [src]
T: JsSerialize,
type Error = Void
fn try_from(
source: &'a mut Vec<T>
) -> Result<Value, <Value as TryFrom<&'a mut Vec<T>>>::Error>[src]
source: &'a mut Vec<T>
) -> Result<Value, <Value as TryFrom<&'a mut Vec<T>>>::Error>
impl TryFrom<Value> for usize[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<usize, <usize as TryFrom<Value>>::Error>[src]
impl<'a> TryFrom<&'a bool> for Value[src]
type Error = Void
fn try_from(
source: &'a bool
) -> Result<Value, <Value as TryFrom<&'a bool>>::Error>[src]
source: &'a bool
) -> Result<Value, <Value as TryFrom<&'a bool>>::Error>
impl TryFrom<MouseOutEvent> for Reference[src]
type Error = Void
fn try_from(
value: MouseOutEvent
) -> Result<Reference, <Reference as TryFrom<MouseOutEvent>>::Error>[src]
value: MouseOutEvent
) -> Result<Reference, <Reference as TryFrom<MouseOutEvent>>::Error>
impl<E, V> TryFrom<Value> for BTreeMap<String, V> where
E: Into<ConversionError>,
V: TryFrom<Value, Error = E>, [src]
E: Into<ConversionError>,
V: TryFrom<Value, Error = E>,
type Error = ConversionError
fn try_from(
value: Value
) -> Result<BTreeMap<String, V>, <BTreeMap<String, V> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<BTreeMap<String, V>, <BTreeMap<String, V> as TryFrom<Value>>::Error>
impl TryFrom<XmlHttpRequest> for Reference[src]
type Error = Void
fn try_from(
value: XmlHttpRequest
) -> Result<Reference, <Reference as TryFrom<XmlHttpRequest>>::Error>[src]
value: XmlHttpRequest
) -> Result<Reference, <Reference as TryFrom<XmlHttpRequest>>::Error>
impl TryFrom<HashChangeEvent> for Reference[src]
type Error = Void
fn try_from(
value: HashChangeEvent
) -> Result<Reference, <Reference as TryFrom<HashChangeEvent>>::Error>[src]
value: HashChangeEvent
) -> Result<Reference, <Reference as TryFrom<HashChangeEvent>>::Error>
impl TryFrom<Object> for Reference[src]
type Error = Void
fn try_from(
value: Object
) -> Result<Reference, <Reference as TryFrom<Object>>::Error>[src]
value: Object
) -> Result<Reference, <Reference as TryFrom<Object>>::Error>
impl<'a> TryFrom<&'a Null> for Value[src]
type Error = Void
fn try_from(
source: &'a Null
) -> Result<Value, <Value as TryFrom<&'a Null>>::Error>[src]
source: &'a Null
) -> Result<Value, <Value as TryFrom<&'a Null>>::Error>
impl TryFrom<usize> for Value[src]
type Error = <Number as TryFrom<usize>>::Error
fn try_from(value: usize) -> Result<Value, <Value as TryFrom<usize>>::Error>[src]
impl TryFrom<DragDropEvent> for Reference[src]
type Error = Void
fn try_from(
value: DragDropEvent
) -> Result<Reference, <Reference as TryFrom<DragDropEvent>>::Error>[src]
value: DragDropEvent
) -> Result<Reference, <Reference as TryFrom<DragDropEvent>>::Error>
impl<E, V> TryFrom<Object> for BTreeMap<String, V> where
E: Into<ConversionError>,
V: TryFrom<Value, Error = E>, [src]
E: Into<ConversionError>,
V: TryFrom<Value, Error = E>,
type Error = ConversionError
fn try_from(
object: Object
) -> Result<BTreeMap<String, V>, <BTreeMap<String, V> as TryFrom<Object>>::Error>[src]
object: Object
) -> Result<BTreeMap<String, V>, <BTreeMap<String, V> as TryFrom<Object>>::Error>
impl TryFrom<DragEndEvent> for Reference[src]
type Error = Void
fn try_from(
value: DragEndEvent
) -> Result<Reference, <Reference as TryFrom<DragEndEvent>>::Error>[src]
value: DragEndEvent
) -> Result<Reference, <Reference as TryFrom<DragEndEvent>>::Error>
impl TryFrom<SlotElement> for Reference[src]
type Error = Void
fn try_from(
value: SlotElement
) -> Result<Reference, <Reference as TryFrom<SlotElement>>::Error>[src]
value: SlotElement
) -> Result<Reference, <Reference as TryFrom<SlotElement>>::Error>
impl TryFrom<Value> for Object[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<Object, <Object as TryFrom<Value>>::Error>[src]
impl TryFrom<i64> for Number[src]
type Error = ConversionError
fn try_from(value: i64) -> Result<Number, <Number as TryFrom<i64>>::Error>[src]
impl TryFrom<char> for Value[src]
impl TryFrom<HtmlElement> for Reference[src]
type Error = Void
fn try_from(
value: HtmlElement
) -> Result<Reference, <Reference as TryFrom<HtmlElement>>::Error>[src]
value: HtmlElement
) -> Result<Reference, <Reference as TryFrom<HtmlElement>>::Error>
impl TryFrom<Value> for i32[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<i32, <i32 as TryFrom<Value>>::Error>[src]
impl TryFrom<u64> for Number[src]
type Error = ConversionError
fn try_from(value: u64) -> Result<Number, <Number as TryFrom<u64>>::Error>[src]
impl TryFrom<u32> for Number[src]
impl TryFrom<Value> for ()[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<(), <() as TryFrom<Value>>::Error>[src]
impl TryFrom<InputElement> for Reference[src]
type Error = Void
fn try_from(
value: InputElement
) -> Result<Reference, <Reference as TryFrom<InputElement>>::Error>[src]
value: InputElement
) -> Result<Reference, <Reference as TryFrom<InputElement>>::Error>
impl TryFrom<TouchMove> for Reference[src]
type Error = Void
fn try_from(
value: TouchMove
) -> Result<Reference, <Reference as TryFrom<TouchMove>>::Error>[src]
value: TouchMove
) -> Result<Reference, <Reference as TryFrom<TouchMove>>::Error>
impl<'a, K, V> TryFrom<&'a HashMap<K, V, RandomState>> for Value where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, [src]
K: AsRef<str> + Eq + Hash,
V: JsSerialize,
type Error = Void
fn try_from(
source: &'a HashMap<K, V, RandomState>
) -> Result<Value, <Value as TryFrom<&'a HashMap<K, V, RandomState>>>::Error>[src]
source: &'a HashMap<K, V, RandomState>
) -> Result<Value, <Value as TryFrom<&'a HashMap<K, V, RandomState>>>::Error>
impl TryFrom<TouchCancel> for Reference[src]
type Error = Void
fn try_from(
value: TouchCancel
) -> Result<Reference, <Reference as TryFrom<TouchCancel>>::Error>[src]
value: TouchCancel
) -> Result<Reference, <Reference as TryFrom<TouchCancel>>::Error>
impl TryFrom<i32> for Number[src]
impl<'a> TryFrom<&'a Value> for &'a Symbol[src]
type Error = ConversionError
fn try_from(
value: &'a Value
) -> Result<&'a Symbol, <&'a Symbol as TryFrom<&'a Value>>::Error>[src]
value: &'a Value
) -> Result<&'a Symbol, <&'a Symbol as TryFrom<&'a Value>>::Error>
impl TryFrom<Event> for Reference[src]
type Error = Void
fn try_from(
value: Event
) -> Result<Reference, <Reference as TryFrom<Event>>::Error>[src]
value: Event
) -> Result<Reference, <Reference as TryFrom<Event>>::Error>
impl TryFrom<Value> for u16[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<u16, <u16 as TryFrom<Value>>::Error>[src]
impl TryFrom<WebSocket> for Reference[src]
type Error = Void
fn try_from(
value: WebSocket
) -> Result<Reference, <Reference as TryFrom<WebSocket>>::Error>[src]
value: WebSocket
) -> Result<Reference, <Reference as TryFrom<WebSocket>>::Error>
impl TryFrom<Number> for i64[src]
type Error = ConversionError
fn try_from(number: Number) -> Result<i64, <i64 as TryFrom<Number>>::Error>[src]
impl TryFrom<AuxClickEvent> for Reference[src]
type Error = Void
fn try_from(
value: AuxClickEvent
) -> Result<Reference, <Reference as TryFrom<AuxClickEvent>>::Error>[src]
value: AuxClickEvent
) -> Result<Reference, <Reference as TryFrom<AuxClickEvent>>::Error>
impl TryFrom<SelectionChangeEvent> for Reference[src]
type Error = Void
fn try_from(
value: SelectionChangeEvent
) -> Result<Reference, <Reference as TryFrom<SelectionChangeEvent>>::Error>[src]
value: SelectionChangeEvent
) -> Result<Reference, <Reference as TryFrom<SelectionChangeEvent>>::Error>
impl TryFrom<Value> for Option<f64>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<f64>, <Option<f64> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<f64>, <Option<f64> as TryFrom<Value>>::Error>
impl TryFrom<Number> for usize[src]
type Error = ConversionError
fn try_from(number: Number) -> Result<usize, <usize as TryFrom<Number>>::Error>[src]
impl TryFrom<MouseOverEvent> for Reference[src]
type Error = Void
fn try_from(
value: MouseOverEvent
) -> Result<Reference, <Reference as TryFrom<MouseOverEvent>>::Error>[src]
value: MouseOverEvent
) -> Result<Reference, <Reference as TryFrom<MouseOverEvent>>::Error>
impl TryFrom<KeyDownEvent> for Reference[src]
type Error = Void
fn try_from(
value: KeyDownEvent
) -> Result<Reference, <Reference as TryFrom<KeyDownEvent>>::Error>[src]
value: KeyDownEvent
) -> Result<Reference, <Reference as TryFrom<KeyDownEvent>>::Error>
impl<'a> TryFrom<&'a mut String> for Value[src]
type Error = Void
fn try_from(
source: &'a mut String
) -> Result<Value, <Value as TryFrom<&'a mut String>>::Error>[src]
source: &'a mut String
) -> Result<Value, <Value as TryFrom<&'a mut String>>::Error>
impl TryFrom<MouseUpEvent> for Reference[src]
type Error = Void
fn try_from(
value: MouseUpEvent
) -> Result<Reference, <Reference as TryFrom<MouseUpEvent>>::Error>[src]
value: MouseUpEvent
) -> Result<Reference, <Reference as TryFrom<MouseUpEvent>>::Error>
impl TryFrom<ContextMenuEvent> for Reference[src]
type Error = Void
fn try_from(
value: ContextMenuEvent
) -> Result<Reference, <Reference as TryFrom<ContextMenuEvent>>::Error>[src]
value: ContextMenuEvent
) -> Result<Reference, <Reference as TryFrom<ContextMenuEvent>>::Error>
impl TryFrom<PointerLockErrorEvent> for Reference[src]
type Error = Void
fn try_from(
value: PointerLockErrorEvent
) -> Result<Reference, <Reference as TryFrom<PointerLockErrorEvent>>::Error>[src]
value: PointerLockErrorEvent
) -> Result<Reference, <Reference as TryFrom<PointerLockErrorEvent>>::Error>
impl TryFrom<PointerLeaveEvent> for Reference[src]
type Error = Void
fn try_from(
value: PointerLeaveEvent
) -> Result<Reference, <Reference as TryFrom<PointerLeaveEvent>>::Error>[src]
value: PointerLeaveEvent
) -> Result<Reference, <Reference as TryFrom<PointerLeaveEvent>>::Error>
impl<'a, T> TryFrom<&'a [T]> for Array where
T: JsSerialize, [src]
T: JsSerialize,
type Error = Void
fn try_from(
source: &'a [T]
) -> Result<Array, <Array as TryFrom<&'a [T]>>::Error>[src]
source: &'a [T]
) -> Result<Array, <Array as TryFrom<&'a [T]>>::Error>
impl TryFrom<Value> for i8[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<i8, <i8 as TryFrom<Value>>::Error>[src]
impl<V> TryFrom<Value> for Option<BTreeMap<String, V>> where
V: TryFrom<Value, Error = ConversionError>, [src]
V: TryFrom<Value, Error = ConversionError>,
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<BTreeMap<String, V>>, <Option<BTreeMap<String, V>> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<BTreeMap<String, V>>, <Option<BTreeMap<String, V>> as TryFrom<Value>>::Error>
impl<K, V> TryFrom<BTreeMap<K, V>> for Value where
K: AsRef<str>,
V: JsSerialize, [src]
K: AsRef<str>,
V: JsSerialize,
type Error = Void
fn try_from(
source: BTreeMap<K, V>
) -> Result<Value, <Value as TryFrom<BTreeMap<K, V>>>::Error>[src]
source: BTreeMap<K, V>
) -> Result<Value, <Value as TryFrom<BTreeMap<K, V>>>::Error>
impl TryFrom<TouchEnd> for Reference[src]
type Error = Void
fn try_from(
value: TouchEnd
) -> Result<Reference, <Reference as TryFrom<TouchEnd>>::Error>[src]
value: TouchEnd
) -> Result<Reference, <Reference as TryFrom<TouchEnd>>::Error>
impl TryFrom<TypeError> for Reference[src]
type Error = Void
fn try_from(
value: TypeError
) -> Result<Reference, <Reference as TryFrom<TypeError>>::Error>[src]
value: TypeError
) -> Result<Reference, <Reference as TryFrom<TypeError>>::Error>
impl TryFrom<PointerEnterEvent> for Reference[src]
type Error = Void
fn try_from(
value: PointerEnterEvent
) -> Result<Reference, <Reference as TryFrom<PointerEnterEvent>>::Error>[src]
value: PointerEnterEvent
) -> Result<Reference, <Reference as TryFrom<PointerEnterEvent>>::Error>
impl<'a, T> TryFrom<&'a mut Vec<T>> for Array where
T: JsSerialize, [src]
T: JsSerialize,
type Error = Void
fn try_from(
source: &'a mut Vec<T>
) -> Result<Array, <Array as TryFrom<&'a mut Vec<T>>>::Error>[src]
source: &'a mut Vec<T>
) -> Result<Array, <Array as TryFrom<&'a mut Vec<T>>>::Error>
impl TryFrom<DragStartEvent> for Reference[src]
type Error = Void
fn try_from(
value: DragStartEvent
) -> Result<Reference, <Reference as TryFrom<DragStartEvent>>::Error>[src]
value: DragStartEvent
) -> Result<Reference, <Reference as TryFrom<DragStartEvent>>::Error>
impl TryFrom<NotFoundError> for Reference[src]
type Error = Void
fn try_from(
value: NotFoundError
) -> Result<Reference, <Reference as TryFrom<NotFoundError>>::Error>[src]
value: NotFoundError
) -> Result<Reference, <Reference as TryFrom<NotFoundError>>::Error>
impl TryFrom<FocusRelatedEvent> for Reference[src]
type Error = Void
fn try_from(
value: FocusRelatedEvent
) -> Result<Reference, <Reference as TryFrom<FocusRelatedEvent>>::Error>[src]
value: FocusRelatedEvent
) -> Result<Reference, <Reference as TryFrom<FocusRelatedEvent>>::Error>
impl TryFrom<ResourceLoadEvent> for Reference[src]
type Error = Void
fn try_from(
value: ResourceLoadEvent
) -> Result<Reference, <Reference as TryFrom<ResourceLoadEvent>>::Error>[src]
value: ResourceLoadEvent
) -> Result<Reference, <Reference as TryFrom<ResourceLoadEvent>>::Error>
impl TryFrom<SyntaxError> for Reference[src]
type Error = Void
fn try_from(
value: SyntaxError
) -> Result<Reference, <Reference as TryFrom<SyntaxError>>::Error>[src]
value: SyntaxError
) -> Result<Reference, <Reference as TryFrom<SyntaxError>>::Error>
impl TryFrom<Value> for Option<usize>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<usize>, <Option<usize> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<usize>, <Option<usize> as TryFrom<Value>>::Error>
impl TryFrom<Value> for Null[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<Null, <Null as TryFrom<Value>>::Error>[src]
impl TryFrom<Value> for Value[src]
impl TryFrom<Symbol> for Value[src]
type Error = Void
fn try_from(source: Symbol) -> Result<Value, <Value as TryFrom<Symbol>>::Error>[src]
impl TryFrom<HierarchyRequestError> for Reference[src]
type Error = Void
fn try_from(
value: HierarchyRequestError
) -> Result<Reference, <Reference as TryFrom<HierarchyRequestError>>::Error>[src]
value: HierarchyRequestError
) -> Result<Reference, <Reference as TryFrom<HierarchyRequestError>>::Error>
impl<T> TryFrom<TypedArray<T>> for Reference where
T: ArrayKind, [src]
T: ArrayKind,
type Error = Void
fn try_from(
value: TypedArray<T>
) -> Result<Reference, <Reference as TryFrom<TypedArray<T>>>::Error>[src]
value: TypedArray<T>
) -> Result<Reference, <Reference as TryFrom<TypedArray<T>>>::Error>
impl<'a> TryFrom<&'a Value> for Option<&'a str>[src]
type Error = ConversionError
fn try_from(
value: &'a Value
) -> Result<Option<&'a str>, <Option<&'a str> as TryFrom<&'a Value>>::Error>[src]
value: &'a Value
) -> Result<Option<&'a str>, <Option<&'a str> as TryFrom<&'a Value>>::Error>
impl TryFrom<DragExitEvent> for Reference[src]
type Error = Void
fn try_from(
value: DragExitEvent
) -> Result<Reference, <Reference as TryFrom<DragExitEvent>>::Error>[src]
value: DragExitEvent
) -> Result<Reference, <Reference as TryFrom<DragExitEvent>>::Error>
impl TryFrom<Number> for f64[src]
type Error = ConversionError
fn try_from(number: Number) -> Result<f64, <f64 as TryFrom<Number>>::Error>[src]
impl TryFrom<ArrayBuffer> for Reference[src]
type Error = Void
fn try_from(
value: ArrayBuffer
) -> Result<Reference, <Reference as TryFrom<ArrayBuffer>>::Error>[src]
value: ArrayBuffer
) -> Result<Reference, <Reference as TryFrom<ArrayBuffer>>::Error>
impl TryFrom<Gamepad> for Reference[src]
type Error = Void
fn try_from(
value: Gamepad
) -> Result<Reference, <Reference as TryFrom<Gamepad>>::Error>[src]
value: Gamepad
) -> Result<Reference, <Reference as TryFrom<Gamepad>>::Error>
impl TryFrom<FileReader> for Reference[src]
type Error = Void
fn try_from(
value: FileReader
) -> Result<Reference, <Reference as TryFrom<FileReader>>::Error>[src]
value: FileReader
) -> Result<Reference, <Reference as TryFrom<FileReader>>::Error>
impl TryFrom<File> for Reference[src]
type Error = Void
fn try_from(
value: File
) -> Result<Reference, <Reference as TryFrom<File>>::Error>[src]
value: File
) -> Result<Reference, <Reference as TryFrom<File>>::Error>
impl TryFrom<Value> for Undefined[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Undefined, <Undefined as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Undefined, <Undefined as TryFrom<Value>>::Error>
impl TryFrom<Number> for u32[src]
type Error = ConversionError
fn try_from(number: Number) -> Result<u32, <u32 as TryFrom<Number>>::Error>[src]
impl TryFrom<Blob> for Reference[src]
type Error = Void
fn try_from(
value: Blob
) -> Result<Reference, <Reference as TryFrom<Blob>>::Error>[src]
value: Blob
) -> Result<Reference, <Reference as TryFrom<Blob>>::Error>
impl<'a, T> TryFrom<&'a [T]> for Value where
T: JsSerialize, [src]
T: JsSerialize,
type Error = Void
fn try_from(
source: &'a [T]
) -> Result<Value, <Value as TryFrom<&'a [T]>>::Error>[src]
source: &'a [T]
) -> Result<Value, <Value as TryFrom<&'a [T]>>::Error>
impl TryFrom<PointerEvent> for Reference[src]
type Error = Void
fn try_from(
value: PointerEvent
) -> Result<Reference, <Reference as TryFrom<PointerEvent>>::Error>[src]
value: PointerEvent
) -> Result<Reference, <Reference as TryFrom<PointerEvent>>::Error>
impl TryFrom<PointerMoveEvent> for Reference[src]
type Error = Void
fn try_from(
value: PointerMoveEvent
) -> Result<Reference, <Reference as TryFrom<PointerMoveEvent>>::Error>[src]
value: PointerMoveEvent
) -> Result<Reference, <Reference as TryFrom<PointerMoveEvent>>::Error>
impl TryFrom<CanvasRenderingContext2d> for Reference[src]
type Error = Void
fn try_from(
value: CanvasRenderingContext2d
) -> Result<Reference, <Reference as TryFrom<CanvasRenderingContext2d>>::Error>[src]
value: CanvasRenderingContext2d
) -> Result<Reference, <Reference as TryFrom<CanvasRenderingContext2d>>::Error>
impl TryFrom<HtmlCollection> for Reference[src]
type Error = Void
fn try_from(
value: HtmlCollection
) -> Result<Reference, <Reference as TryFrom<HtmlCollection>>::Error>[src]
value: HtmlCollection
) -> Result<Reference, <Reference as TryFrom<HtmlCollection>>::Error>
impl TryFrom<TouchEnter> for Reference[src]
type Error = Void
fn try_from(
value: TouchEnter
) -> Result<Reference, <Reference as TryFrom<TouchEnter>>::Error>[src]
value: TouchEnter
) -> Result<Reference, <Reference as TryFrom<TouchEnter>>::Error>
impl<'a, T> TryFrom<&'a Vec<T>> for Value where
T: JsSerialize, [src]
T: JsSerialize,
type Error = Void
fn try_from(
source: &'a Vec<T>
) -> Result<Value, <Value as TryFrom<&'a Vec<T>>>::Error>[src]
source: &'a Vec<T>
) -> Result<Value, <Value as TryFrom<&'a Vec<T>>>::Error>
impl TryFrom<u8> for Number[src]
impl TryFrom<Value> for Array[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<Array, <Array as TryFrom<Value>>::Error>[src]
impl TryFrom<ShadowRoot> for Reference[src]
type Error = Void
fn try_from(
value: ShadowRoot
) -> Result<Reference, <Reference as TryFrom<ShadowRoot>>::Error>[src]
value: ShadowRoot
) -> Result<Reference, <Reference as TryFrom<ShadowRoot>>::Error>
impl<'a, K, V> TryFrom<&'a mut HashMap<K, V, RandomState>> for Value where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, [src]
K: AsRef<str> + Eq + Hash,
V: JsSerialize,
type Error = Void
fn try_from(
source: &'a mut HashMap<K, V, RandomState>
) -> Result<Value, <Value as TryFrom<&'a mut HashMap<K, V, RandomState>>>::Error>[src]
source: &'a mut HashMap<K, V, RandomState>
) -> Result<Value, <Value as TryFrom<&'a mut HashMap<K, V, RandomState>>>::Error>
impl<'a, T> TryFrom<&'a mut [T]> for Array where
T: JsSerialize, [src]
T: JsSerialize,
type Error = Void
fn try_from(
source: &'a mut [T]
) -> Result<Array, <Array as TryFrom<&'a mut [T]>>::Error>[src]
source: &'a mut [T]
) -> Result<Array, <Array as TryFrom<&'a mut [T]>>::Error>
impl TryFrom<ImageData> for Reference[src]
type Error = Void
fn try_from(
value: ImageData
) -> Result<Reference, <Reference as TryFrom<ImageData>>::Error>[src]
value: ImageData
) -> Result<Reference, <Reference as TryFrom<ImageData>>::Error>
impl TryFrom<ProgressLoadEvent> for Reference[src]
type Error = Void
fn try_from(
value: ProgressLoadEvent
) -> Result<Reference, <Reference as TryFrom<ProgressLoadEvent>>::Error>[src]
value: ProgressLoadEvent
) -> Result<Reference, <Reference as TryFrom<ProgressLoadEvent>>::Error>
impl<'a> TryFrom<&'a mut str> for Value[src]
type Error = Void
fn try_from(
source: &'a mut str
) -> Result<Value, <Value as TryFrom<&'a mut str>>::Error>[src]
source: &'a mut str
) -> Result<Value, <Value as TryFrom<&'a mut str>>::Error>
impl TryFrom<i16> for Value[src]
impl<'a> TryFrom<&'a Reference> for &'a Reference[src]
type Error = Void
fn try_from(
source: &'a Reference
) -> Result<&'a Reference, <&'a Reference as TryFrom<&'a Reference>>::Error>[src]
source: &'a Reference
) -> Result<&'a Reference, <&'a Reference as TryFrom<&'a Reference>>::Error>
impl TryFrom<SocketErrorEvent> for Reference[src]
type Error = Void
fn try_from(
value: SocketErrorEvent
) -> Result<Reference, <Reference as TryFrom<SocketErrorEvent>>::Error>[src]
value: SocketErrorEvent
) -> Result<Reference, <Reference as TryFrom<SocketErrorEvent>>::Error>
impl<'a> TryFrom<&'a Value> for &'a str[src]
type Error = ConversionError
fn try_from(
value: &'a Value
) -> Result<&'a str, <&'a str as TryFrom<&'a Value>>::Error>[src]
value: &'a Value
) -> Result<&'a str, <&'a str as TryFrom<&'a Value>>::Error>
impl TryFrom<KeyUpEvent> for Reference[src]
type Error = Void
fn try_from(
value: KeyUpEvent
) -> Result<Reference, <Reference as TryFrom<KeyUpEvent>>::Error>[src]
value: KeyUpEvent
) -> Result<Reference, <Reference as TryFrom<KeyUpEvent>>::Error>
impl<'a, K, V> TryFrom<&'a mut HashMap<K, V, RandomState>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, [src]
K: AsRef<str> + Eq + Hash,
V: JsSerialize,
type Error = Void
fn try_from(
source: &'a mut HashMap<K, V, RandomState>
) -> Result<Object, <Object as TryFrom<&'a mut HashMap<K, V, RandomState>>>::Error>[src]
source: &'a mut HashMap<K, V, RandomState>
) -> Result<Object, <Object as TryFrom<&'a mut HashMap<K, V, RandomState>>>::Error>
impl TryFrom<MouseDownEvent> for Reference[src]
type Error = Void
fn try_from(
value: MouseDownEvent
) -> Result<Reference, <Reference as TryFrom<MouseDownEvent>>::Error>[src]
value: MouseDownEvent
) -> Result<Reference, <Reference as TryFrom<MouseDownEvent>>::Error>
impl TryFrom<PointerOutEvent> for Reference[src]
type Error = Void
fn try_from(
value: PointerOutEvent
) -> Result<Reference, <Reference as TryFrom<PointerOutEvent>>::Error>[src]
value: PointerOutEvent
) -> Result<Reference, <Reference as TryFrom<PointerOutEvent>>::Error>
impl TryFrom<NamespaceError> for Reference[src]
type Error = Void
fn try_from(
value: NamespaceError
) -> Result<Reference, <Reference as TryFrom<NamespaceError>>::Error>[src]
value: NamespaceError
) -> Result<Reference, <Reference as TryFrom<NamespaceError>>::Error>
impl TryFrom<DataTransferItem> for Reference[src]
type Error = Void
fn try_from(
value: DataTransferItem
) -> Result<Reference, <Reference as TryFrom<DataTransferItem>>::Error>[src]
value: DataTransferItem
) -> Result<Reference, <Reference as TryFrom<DataTransferItem>>::Error>
impl TryFrom<DragOverEvent> for Reference[src]
type Error = Void
fn try_from(
value: DragOverEvent
) -> Result<Reference, <Reference as TryFrom<DragOverEvent>>::Error>[src]
value: DragOverEvent
) -> Result<Reference, <Reference as TryFrom<DragOverEvent>>::Error>
impl TryFrom<Number> for i16[src]
type Error = ConversionError
fn try_from(number: Number) -> Result<i16, <i16 as TryFrom<Number>>::Error>[src]
impl TryFrom<Node> for Reference[src]
type Error = Void
fn try_from(
value: Node
) -> Result<Reference, <Reference as TryFrom<Node>>::Error>[src]
value: Node
) -> Result<Reference, <Reference as TryFrom<Node>>::Error>
impl<'de, T> TryFrom<Value> for Option<Serde<T>> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<Serde<T>>, <Option<Serde<T>> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<Serde<T>>, <Option<Serde<T>> as TryFrom<Value>>::Error>
impl<K, V> TryFrom<HashMap<K, V, RandomState>> for Value where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, [src]
K: AsRef<str> + Eq + Hash,
V: JsSerialize,
type Error = Void
fn try_from(
source: HashMap<K, V, RandomState>
) -> Result<Value, <Value as TryFrom<HashMap<K, V, RandomState>>>::Error>[src]
source: HashMap<K, V, RandomState>
) -> Result<Value, <Value as TryFrom<HashMap<K, V, RandomState>>>::Error>
impl TryFrom<TextNode> for Reference[src]
type Error = Void
fn try_from(
value: TextNode
) -> Result<Reference, <Reference as TryFrom<TextNode>>::Error>[src]
value: TextNode
) -> Result<Reference, <Reference as TryFrom<TextNode>>::Error>
impl TryFrom<NodeList> for Reference[src]
type Error = Void
fn try_from(
value: NodeList
) -> Result<Reference, <Reference as TryFrom<NodeList>>::Error>[src]
value: NodeList
) -> Result<Reference, <Reference as TryFrom<NodeList>>::Error>
impl<'_r> TryFrom<&'_r Reference> for Object[src]
type Error = ConversionError
fn try_from(
reference: &Reference
) -> Result<Object, <Object as TryFrom<&'_r Reference>>::Error>[src]
reference: &Reference
) -> Result<Object, <Object as TryFrom<&'_r Reference>>::Error>
impl<'a> TryFrom<&'a mut Null> for Value[src]
type Error = Void
fn try_from(
source: &'a mut Null
) -> Result<Value, <Value as TryFrom<&'a mut Null>>::Error>[src]
source: &'a mut Null
) -> Result<Value, <Value as TryFrom<&'a mut Null>>::Error>
impl TryFrom<Reference> for Object[src]
type Error = ConversionError
fn try_from(
reference: Reference
) -> Result<Object, <Object as TryFrom<Reference>>::Error>[src]
reference: Reference
) -> Result<Object, <Object as TryFrom<Reference>>::Error>
impl TryFrom<ImageElement> for Reference[src]
type Error = Void
fn try_from(
value: ImageElement
) -> Result<Reference, <Reference as TryFrom<ImageElement>>::Error>[src]
value: ImageElement
) -> Result<Reference, <Reference as TryFrom<ImageElement>>::Error>
impl TryFrom<ResourceAbortEvent> for Reference[src]
type Error = Void
fn try_from(
value: ResourceAbortEvent
) -> Result<Reference, <Reference as TryFrom<ResourceAbortEvent>>::Error>[src]
value: ResourceAbortEvent
) -> Result<Reference, <Reference as TryFrom<ResourceAbortEvent>>::Error>
impl TryFrom<SocketMessageEvent> for Reference[src]
type Error = Void
fn try_from(
value: SocketMessageEvent
) -> Result<Reference, <Reference as TryFrom<SocketMessageEvent>>::Error>[src]
value: SocketMessageEvent
) -> Result<Reference, <Reference as TryFrom<SocketMessageEvent>>::Error>
impl TryFrom<Selection> for Reference[src]
type Error = Void
fn try_from(
value: Selection
) -> Result<Reference, <Reference as TryFrom<Selection>>::Error>[src]
value: Selection
) -> Result<Reference, <Reference as TryFrom<Selection>>::Error>
impl TryFrom<History> for Reference[src]
type Error = Void
fn try_from(
value: History
) -> Result<Reference, <Reference as TryFrom<History>>::Error>[src]
value: History
) -> Result<Reference, <Reference as TryFrom<History>>::Error>
impl<'_r> TryFrom<&'_r Value> for Object[src]
type Error = ConversionError
fn try_from(
value: &Value
) -> Result<Object, <Object as TryFrom<&'_r Value>>::Error>[src]
value: &Value
) -> Result<Object, <Object as TryFrom<&'_r Value>>::Error>
impl TryFrom<TouchEvent> for Reference[src]
type Error = Void
fn try_from(
value: TouchEvent
) -> Result<Reference, <Reference as TryFrom<TouchEvent>>::Error>[src]
value: TouchEvent
) -> Result<Reference, <Reference as TryFrom<TouchEvent>>::Error>
impl TryFrom<TouchLeave> for Reference[src]
type Error = Void
fn try_from(
value: TouchLeave
) -> Result<Reference, <Reference as TryFrom<TouchLeave>>::Error>[src]
value: TouchLeave
) -> Result<Reference, <Reference as TryFrom<TouchLeave>>::Error>
impl TryFrom<ResizeEvent> for Reference[src]
type Error = Void
fn try_from(
value: ResizeEvent
) -> Result<Reference, <Reference as TryFrom<ResizeEvent>>::Error>[src]
value: ResizeEvent
) -> Result<Reference, <Reference as TryFrom<ResizeEvent>>::Error>
impl TryFrom<i64> for Value[src]
type Error = <Number as TryFrom<i64>>::Error
fn try_from(value: i64) -> Result<Value, <Value as TryFrom<i64>>::Error>[src]
impl TryFrom<u16> for Value[src]
impl<'a> TryFrom<&'a Undefined> for Value[src]
type Error = Void
fn try_from(
source: &'a Undefined
) -> Result<Value, <Value as TryFrom<&'a Undefined>>::Error>[src]
source: &'a Undefined
) -> Result<Value, <Value as TryFrom<&'a Undefined>>::Error>
impl TryFrom<Value> for Option<i64>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<i64>, <Option<i64> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<i64>, <Option<i64> as TryFrom<Value>>::Error>
impl<K, V> TryFrom<HashMap<K, V, RandomState>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, [src]
K: AsRef<str> + Eq + Hash,
V: JsSerialize,
type Error = Void
fn try_from(
source: HashMap<K, V, RandomState>
) -> Result<Object, <Object as TryFrom<HashMap<K, V, RandomState>>>::Error>[src]
source: HashMap<K, V, RandomState>
) -> Result<Object, <Object as TryFrom<HashMap<K, V, RandomState>>>::Error>
impl TryFrom<SubmitEvent> for Reference[src]
type Error = Void
fn try_from(
value: SubmitEvent
) -> Result<Reference, <Reference as TryFrom<SubmitEvent>>::Error>[src]
value: SubmitEvent
) -> Result<Reference, <Reference as TryFrom<SubmitEvent>>::Error>
impl TryFrom<InvalidPointerId> for Reference[src]
type Error = Void
fn try_from(
value: InvalidPointerId
) -> Result<Reference, <Reference as TryFrom<InvalidPointerId>>::Error>[src]
value: InvalidPointerId
) -> Result<Reference, <Reference as TryFrom<InvalidPointerId>>::Error>
impl TryFrom<Error> for Reference[src]
type Error = Void
fn try_from(
value: Error
) -> Result<Reference, <Reference as TryFrom<Error>>::Error>[src]
value: Error
) -> Result<Reference, <Reference as TryFrom<Error>>::Error>
impl TryFrom<CanvasElement> for Reference[src]
type Error = Void
fn try_from(
value: CanvasElement
) -> Result<Reference, <Reference as TryFrom<CanvasElement>>::Error>[src]
value: CanvasElement
) -> Result<Reference, <Reference as TryFrom<CanvasElement>>::Error>
impl TryFrom<Value> for Option<Symbol>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<Symbol>, <Option<Symbol> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<Symbol>, <Option<Symbol> as TryFrom<Value>>::Error>
impl<'a, T> TryFrom<&'a Vec<T>> for Array where
T: JsSerialize, [src]
T: JsSerialize,
type Error = Void
fn try_from(
source: &'a Vec<T>
) -> Result<Array, <Array as TryFrom<&'a Vec<T>>>::Error>[src]
source: &'a Vec<T>
) -> Result<Array, <Array as TryFrom<&'a Vec<T>>>::Error>
impl TryFrom<Value> for Option<u16>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<u16>, <Option<u16> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<u16>, <Option<u16> as TryFrom<Value>>::Error>
impl TryFrom<InvalidStateError> for Reference[src]
type Error = Void
fn try_from(
value: InvalidStateError
) -> Result<Reference, <Reference as TryFrom<InvalidStateError>>::Error>[src]
value: InvalidStateError
) -> Result<Reference, <Reference as TryFrom<InvalidStateError>>::Error>
impl TryFrom<ResourceErrorEvent> for Reference[src]
type Error = Void
fn try_from(
value: ResourceErrorEvent
) -> Result<Reference, <Reference as TryFrom<ResourceErrorEvent>>::Error>[src]
value: ResourceErrorEvent
) -> Result<Reference, <Reference as TryFrom<ResourceErrorEvent>>::Error>
impl TryFrom<Location> for Reference[src]
type Error = Void
fn try_from(
value: Location
) -> Result<Reference, <Reference as TryFrom<Location>>::Error>[src]
value: Location
) -> Result<Reference, <Reference as TryFrom<Location>>::Error>
impl TryFrom<Value> for Option<u64>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<u64>, <Option<u64> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<u64>, <Option<u64> as TryFrom<Value>>::Error>
impl TryFrom<NotSupportedError> for Reference[src]
type Error = Void
fn try_from(
value: NotSupportedError
) -> Result<Reference, <Reference as TryFrom<NotSupportedError>>::Error>[src]
value: NotSupportedError
) -> Result<Reference, <Reference as TryFrom<NotSupportedError>>::Error>
impl TryFrom<KeyPressEvent> for Reference[src]
type Error = Void
fn try_from(
value: KeyPressEvent
) -> Result<Reference, <Reference as TryFrom<KeyPressEvent>>::Error>[src]
value: KeyPressEvent
) -> Result<Reference, <Reference as TryFrom<KeyPressEvent>>::Error>
impl TryFrom<Reference> for Reference[src]
type Error = Void
fn try_from(
source: Reference
) -> Result<Reference, <Reference as TryFrom<Reference>>::Error>[src]
source: Reference
) -> Result<Reference, <Reference as TryFrom<Reference>>::Error>
impl TryFrom<DataTransfer> for Reference[src]
type Error = Void
fn try_from(
value: DataTransfer
) -> Result<Reference, <Reference as TryFrom<DataTransfer>>::Error>[src]
value: DataTransfer
) -> Result<Reference, <Reference as TryFrom<DataTransfer>>::Error>
impl TryFrom<Number> for u64[src]
type Error = ConversionError
fn try_from(number: Number) -> Result<u64, <u64 as TryFrom<Number>>::Error>[src]
impl TryFrom<f32> for Value[src]
impl TryFrom<PointerOverEvent> for Reference[src]
type Error = Void
fn try_from(
value: PointerOverEvent
) -> Result<Reference, <Reference as TryFrom<PointerOverEvent>>::Error>[src]
value: PointerOverEvent
) -> Result<Reference, <Reference as TryFrom<PointerOverEvent>>::Error>
impl TryFrom<SecurityError> for Reference[src]
type Error = Void
fn try_from(
value: SecurityError
) -> Result<Reference, <Reference as TryFrom<SecurityError>>::Error>[src]
value: SecurityError
) -> Result<Reference, <Reference as TryFrom<SecurityError>>::Error>
impl TryFrom<GamepadEvent> for Reference[src]
type Error = Void
fn try_from(
value: GamepadEvent
) -> Result<Reference, <Reference as TryFrom<GamepadEvent>>::Error>[src]
value: GamepadEvent
) -> Result<Reference, <Reference as TryFrom<GamepadEvent>>::Error>
impl TryFrom<PointerCancelEvent> for Reference[src]
type Error = Void
fn try_from(
value: PointerCancelEvent
) -> Result<Reference, <Reference as TryFrom<PointerCancelEvent>>::Error>[src]
value: PointerCancelEvent
) -> Result<Reference, <Reference as TryFrom<PointerCancelEvent>>::Error>
impl<'a> TryFrom<&'a String> for Value[src]
type Error = Void
fn try_from(
source: &'a String
) -> Result<Value, <Value as TryFrom<&'a String>>::Error>[src]
source: &'a String
) -> Result<Value, <Value as TryFrom<&'a String>>::Error>
impl TryFrom<Array> for Reference[src]
type Error = Void
fn try_from(
value: Array
) -> Result<Reference, <Reference as TryFrom<Array>>::Error>[src]
value: Array
) -> Result<Reference, <Reference as TryFrom<Array>>::Error>
impl TryFrom<FocusEvent> for Reference[src]
type Error = Void
fn try_from(
value: FocusEvent
) -> Result<Reference, <Reference as TryFrom<FocusEvent>>::Error>[src]
value: FocusEvent
) -> Result<Reference, <Reference as TryFrom<FocusEvent>>::Error>
impl<'a, T> TryFrom<&'a Serde<T>> for Value where
T: Serialize, [src]
T: Serialize,
type Error = ConversionError
fn try_from(
value: &'a Serde<T>
) -> Result<Value, <Value as TryFrom<&'a Serde<T>>>::Error>[src]
value: &'a Serde<T>
) -> Result<Value, <Value as TryFrom<&'a Serde<T>>>::Error>
impl<'a> TryFrom<&'a Value> for Option<&'a Reference>[src]
type Error = ConversionError
fn try_from(
value: &'a Value
) -> Result<Option<&'a Reference>, <Option<&'a Reference> as TryFrom<&'a Value>>::Error>[src]
value: &'a Value
) -> Result<Option<&'a Reference>, <Option<&'a Reference> as TryFrom<&'a Value>>::Error>
impl<'a, K, V> TryFrom<&'a BTreeMap<K, V>> for Value where
K: AsRef<str>,
V: JsSerialize, [src]
K: AsRef<str>,
V: JsSerialize,
type Error = Void
fn try_from(
source: &'a BTreeMap<K, V>
) -> Result<Value, <Value as TryFrom<&'a BTreeMap<K, V>>>::Error>[src]
source: &'a BTreeMap<K, V>
) -> Result<Value, <Value as TryFrom<&'a BTreeMap<K, V>>>::Error>
impl TryFrom<Value> for Option<i32>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<i32>, <Option<i32> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<i32>, <Option<i32> as TryFrom<Value>>::Error>
impl TryFrom<Value> for f64[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<f64, <f64 as TryFrom<Value>>::Error>[src]
impl TryFrom<GamepadButton> for Reference[src]
type Error = Void
fn try_from(
value: GamepadButton
) -> Result<Reference, <Reference as TryFrom<GamepadButton>>::Error>[src]
value: GamepadButton
) -> Result<Reference, <Reference as TryFrom<GamepadButton>>::Error>
impl<'a, K, V> TryFrom<&'a BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, [src]
K: AsRef<str>,
V: JsSerialize,
type Error = Void
fn try_from(
source: &'a BTreeMap<K, V>
) -> Result<Object, <Object as TryFrom<&'a BTreeMap<K, V>>>::Error>[src]
source: &'a BTreeMap<K, V>
) -> Result<Object, <Object as TryFrom<&'a BTreeMap<K, V>>>::Error>
impl TryFrom<Value> for Option<u8>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<u8>, <Option<u8> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<u8>, <Option<u8> as TryFrom<Value>>::Error>
impl TryFrom<Range> for Reference[src]
type Error = Void
fn try_from(
value: Range
) -> Result<Reference, <Reference as TryFrom<Range>>::Error>[src]
value: Range
) -> Result<Reference, <Reference as TryFrom<Range>>::Error>
impl<'a, K, V> TryFrom<&'a HashMap<K, V, RandomState>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, [src]
K: AsRef<str> + Eq + Hash,
V: JsSerialize,
type Error = Void
fn try_from(
source: &'a HashMap<K, V, RandomState>
) -> Result<Object, <Object as TryFrom<&'a HashMap<K, V, RandomState>>>::Error>[src]
source: &'a HashMap<K, V, RandomState>
) -> Result<Object, <Object as TryFrom<&'a HashMap<K, V, RandomState>>>::Error>
impl TryFrom<Value> for Symbol[src]
type Error = ConversionError
fn try_from(value: Value) -> Result<Symbol, <Symbol as TryFrom<Value>>::Error>[src]
impl TryFrom<u8> for Value[src]
impl TryFrom<DoubleClickEvent> for Reference[src]
type Error = Void
fn try_from(
value: DoubleClickEvent
) -> Result<Reference, <Reference as TryFrom<DoubleClickEvent>>::Error>[src]
value: DoubleClickEvent
) -> Result<Reference, <Reference as TryFrom<DoubleClickEvent>>::Error>
impl TryFrom<InvalidAccessError> for Reference[src]
type Error = Void
fn try_from(
value: InvalidAccessError
) -> Result<Reference, <Reference as TryFrom<InvalidAccessError>>::Error>[src]
value: InvalidAccessError
) -> Result<Reference, <Reference as TryFrom<InvalidAccessError>>::Error>
impl<'_r> TryFrom<&'_r Value> for Array[src]
type Error = ConversionError
fn try_from(
value: &Value
) -> Result<Array, <Array as TryFrom<&'_r Value>>::Error>[src]
value: &Value
) -> Result<Array, <Array as TryFrom<&'_r Value>>::Error>
impl TryFrom<Value> for Option<bool>[src]
type Error = ConversionError
fn try_from(
value: Value
) -> Result<Option<bool>, <Option<bool> as TryFrom<Value>>::Error>[src]
value: Value
) -> Result<Option<bool>, <Option<bool> as TryFrom<Value>>::Error>
impl TryFrom<ReadyStateChangeEvent> for Reference[src]
type Error = Void
fn try_from(
value: ReadyStateChangeEvent
) -> Result<Reference, <Reference as TryFrom<ReadyStateChangeEvent>>::Error>[src]
value: ReadyStateChangeEvent
) -> Result<Reference, <Reference as TryFrom<ReadyStateChangeEvent>>::Error>
impl TryFrom<HeapStatistics> for Value
type Error = ConversionError
fn try_from(value: HeapStatistics) -> Result<Self, Self::Error>
impl<'_a> TryFrom<&'_a HeapStatistics> for Value
type Error = ConversionError
fn try_from(value: &'_a HeapStatistics) -> Result<Self, Self::Error>
impl<'_a> TryFrom<&'_a mut HeapStatistics> for Value
type Error = ConversionError
fn try_from(value: &'_a mut HeapStatistics) -> Result<Self, Self::Error>
impl<T> TryFrom<JsVec<T>> for Array[src]
impl<T> TryFrom<JsVec<T>> for Reference[src]
impl TryFrom<Step> for Value
impl<'_a> TryFrom<&'_a Step> for Value
impl<'_a> TryFrom<&'_a mut Step> for Value
impl TryFrom<ConstructionSite> for Reference[src]
impl TryFrom<Creep> for Reference[src]
impl TryFrom<Flag> for Reference[src]
impl TryFrom<Mineral> for Reference[src]
impl TryFrom<Nuke> for Reference[src]
impl TryFrom<OwnedStructure> for Reference[src]
impl TryFrom<Resource> for Reference[src]
impl TryFrom<Room> for Reference[src]
impl TryFrom<RoomObject> for Reference[src]
impl TryFrom<RoomPosition> for Reference[src]
impl TryFrom<RoomTerrain> for Reference[src]
impl TryFrom<Source> for Reference[src]
impl TryFrom<StructureContainer> for Reference[src]
impl TryFrom<StructureController> for Reference[src]
impl TryFrom<StructureExtension> for Reference[src]
impl TryFrom<StructureExtractor> for Reference[src]
impl TryFrom<StructureKeeperLair> for Reference[src]
impl TryFrom<StructureLab> for Reference[src]
impl TryFrom<StructureLink> for Reference[src]
impl TryFrom<StructureNuker> for Reference[src]
impl TryFrom<StructureObserver> for Reference[src]
impl TryFrom<StructurePowerBank> for Reference[src]
impl TryFrom<StructurePowerSpawn> for Reference[src]
impl TryFrom<StructurePortal> for Reference[src]
impl TryFrom<StructureRampart> for Reference[src]
impl TryFrom<StructureRoad> for Reference[src]
impl TryFrom<StructureSpawn> for Reference[src]
impl TryFrom<Spawning> for Reference[src]
impl TryFrom<StructureStorage> for Reference[src]
impl TryFrom<StructureTerminal> for Reference[src]
impl TryFrom<StructureTower> for Reference[src]
impl TryFrom<StructureWall> for Reference[src]
impl TryFrom<Tombstone> for Reference[src]
impl TryFrom<LocalRoomName> for Value
type Error = ConversionError
fn try_from(value: LocalRoomName) -> Result<Self, Self::Error>
impl<'_a> TryFrom<&'_a LocalRoomName> for Value
type Error = ConversionError
fn try_from(value: &'_a LocalRoomName) -> Result<Self, Self::Error>
impl<'_a> TryFrom<&'_a mut LocalRoomName> for Value
type Error = ConversionError
fn try_from(value: &'_a mut LocalRoomName) -> Result<Self, Self::Error>
Implementors
impl TryFrom<Value> for ReturnCode[src]
impl TryFrom<Value> for Direction[src]
impl TryFrom<Value> for Color[src]
impl TryFrom<Value> for Terrain[src]
impl TryFrom<Value> for Part[src]
impl TryFrom<Value> for StructureType[src]
impl TryFrom<Value> for Density[src]
impl TryFrom<Value> for ResourceType[src]
impl TryFrom<Value> for HeapStatistics
impl TryFrom<Value> for RoomRouteStep
impl TryFrom<Value> for Player
impl TryFrom<Value> for TransactionOrder
impl TryFrom<Value> for Transaction
impl TryFrom<Value> for Order
impl TryFrom<Value> for MyOrder
impl TryFrom<Value> for MemoryReference[src]
impl TryFrom<Value> for Step
impl TryFrom<Value> for Path
impl TryFrom<Value> for LookResult[src]
impl TryFrom<Value> for PositionedLookResult[src]
impl TryFrom<Value> for Structure[src]
impl TryFrom<Value> for ConstructionSite[src]
impl TryFrom<Value> for Creep[src]
impl TryFrom<Value> for Flag[src]
impl TryFrom<Value> for Mineral[src]
impl TryFrom<Value> for Nuke[src]
impl TryFrom<Value> for OwnedStructure[src]
impl TryFrom<Value> for Resource[src]
impl TryFrom<Value> for Room[src]
impl TryFrom<Value> for RoomObject[src]
impl TryFrom<Value> for RoomPosition[src]
impl TryFrom<Value> for RoomTerrain[src]
impl TryFrom<Value> for Source[src]
impl TryFrom<Value> for StructureContainer[src]
impl TryFrom<Value> for StructureController[src]
impl TryFrom<Value> for StructureExtension[src]
impl TryFrom<Value> for StructureExtractor[src]
impl TryFrom<Value> for StructureKeeperLair[src]
impl TryFrom<Value> for StructureLab[src]
impl TryFrom<Value> for StructureLink[src]
impl TryFrom<Value> for StructureNuker[src]
impl TryFrom<Value> for StructureObserver[src]
impl TryFrom<Value> for StructurePowerBank[src]
impl TryFrom<Value> for StructurePowerSpawn[src]
impl TryFrom<Value> for StructurePortal[src]
impl TryFrom<Value> for StructureRampart[src]
impl TryFrom<Value> for StructureRoad[src]
impl TryFrom<Value> for StructureSpawn[src]
impl TryFrom<Value> for Spawning[src]
impl TryFrom<Value> for StructureStorage[src]
impl TryFrom<Value> for StructureTerminal[src]
impl TryFrom<Value> for StructureTower[src]
impl TryFrom<Value> for StructureWall[src]
impl TryFrom<Value> for Tombstone[src]
impl TryFrom<Value> for LocalRoomName
impl TryFrom<Value> for LocalRoomPosition[src]
type Error = <Value as TryInto<String>>::Error
fn try_from(v: Value) -> Result<LocalRoomPosition, Self::Error>[src]
impl TryFrom<Value> for ForeignSegment
impl TryFrom<i32> for ReturnCode[src]
impl TryFrom<i32> for Exit[src]
impl TryFrom<u32> for Part[src]
impl TryFrom<Reference> for Structure[src]
impl TryFrom<Reference> for ConstructionSite[src]
impl TryFrom<Reference> for Creep[src]
impl TryFrom<Reference> for Flag[src]
impl TryFrom<Reference> for Mineral[src]
impl TryFrom<Reference> for Nuke[src]
impl TryFrom<Reference> for OwnedStructure[src]
impl TryFrom<Reference> for Resource[src]
impl TryFrom<Reference> for Room[src]
impl TryFrom<Reference> for RoomObject[src]
impl TryFrom<Reference> for RoomPosition[src]
impl TryFrom<Reference> for RoomTerrain[src]
impl TryFrom<Reference> for Source[src]
impl TryFrom<Reference> for StructureContainer[src]
impl TryFrom<Reference> for StructureController[src]
impl TryFrom<Reference> for StructureExtension[src]
impl TryFrom<Reference> for StructureExtractor[src]
impl TryFrom<Reference> for StructureKeeperLair[src]
impl TryFrom<Reference> for StructureLab[src]
impl TryFrom<Reference> for StructureLink[src]
impl TryFrom<Reference> for StructureNuker[src]
impl TryFrom<Reference> for StructureObserver[src]
impl TryFrom<Reference> for StructurePowerBank[src]
impl TryFrom<Reference> for StructurePowerSpawn[src]
impl TryFrom<Reference> for StructurePortal[src]
impl TryFrom<Reference> for StructureRampart[src]
impl TryFrom<Reference> for StructureRoad[src]
impl TryFrom<Reference> for StructureSpawn[src]
impl TryFrom<Reference> for Spawning[src]
impl TryFrom<Reference> for StructureStorage[src]
impl TryFrom<Reference> for StructureTerminal[src]
impl TryFrom<Reference> for StructureTower[src]
impl TryFrom<Reference> for StructureWall[src]
impl TryFrom<Reference> for Tombstone[src]
impl<'_r> TryFrom<&'_r Value> for ConstructionSite[src]
impl<'_r> TryFrom<&'_r Value> for Creep[src]
impl<'_r> TryFrom<&'_r Value> for Flag[src]
impl<'_r> TryFrom<&'_r Value> for Mineral[src]
impl<'_r> TryFrom<&'_r Value> for Nuke[src]
impl<'_r> TryFrom<&'_r Value> for OwnedStructure[src]
impl<'_r> TryFrom<&'_r Value> for Resource[src]
impl<'_r> TryFrom<&'_r Value> for Room[src]
impl<'_r> TryFrom<&'_r Value> for RoomObject[src]
impl<'_r> TryFrom<&'_r Value> for RoomPosition[src]
impl<'_r> TryFrom<&'_r Value> for RoomTerrain[src]
impl<'_r> TryFrom<&'_r Value> for Source[src]
impl<'_r> TryFrom<&'_r Value> for StructureContainer[src]
impl<'_r> TryFrom<&'_r Value> for StructureController[src]
impl<'_r> TryFrom<&'_r Value> for StructureExtension[src]
impl<'_r> TryFrom<&'_r Value> for StructureExtractor[src]
impl<'_r> TryFrom<&'_r Value> for StructureKeeperLair[src]
impl<'_r> TryFrom<&'_r Value> for StructureLab[src]
impl<'_r> TryFrom<&'_r Value> for StructureLink[src]
impl<'_r> TryFrom<&'_r Value> for StructureNuker[src]
impl<'_r> TryFrom<&'_r Value> for StructureObserver[src]
impl<'_r> TryFrom<&'_r Value> for StructurePowerBank[src]
impl<'_r> TryFrom<&'_r Value> for StructurePowerSpawn[src]
impl<'_r> TryFrom<&'_r Value> for StructurePortal[src]
impl<'_r> TryFrom<&'_r Value> for StructureRampart[src]
impl<'_r> TryFrom<&'_r Value> for StructureRoad[src]
impl<'_r> TryFrom<&'_r Value> for StructureSpawn[src]
impl<'_r> TryFrom<&'_r Value> for Spawning[src]
impl<'_r> TryFrom<&'_r Value> for StructureStorage[src]
impl<'_r> TryFrom<&'_r Value> for StructureTerminal[src]
impl<'_r> TryFrom<&'_r Value> for StructureTower[src]
impl<'_r> TryFrom<&'_r Value> for StructureWall[src]
impl<'_r> TryFrom<&'_r Value> for Tombstone[src]
impl<'_r> TryFrom<&'_r Reference> for ConstructionSite[src]
impl<'_r> TryFrom<&'_r Reference> for Creep[src]
impl<'_r> TryFrom<&'_r Reference> for Flag[src]
impl<'_r> TryFrom<&'_r Reference> for Mineral[src]
impl<'_r> TryFrom<&'_r Reference> for Nuke[src]
impl<'_r> TryFrom<&'_r Reference> for OwnedStructure[src]
impl<'_r> TryFrom<&'_r Reference> for Resource[src]
impl<'_r> TryFrom<&'_r Reference> for Room[src]
impl<'_r> TryFrom<&'_r Reference> for RoomObject[src]
impl<'_r> TryFrom<&'_r Reference> for RoomPosition[src]
impl<'_r> TryFrom<&'_r Reference> for RoomTerrain[src]
impl<'_r> TryFrom<&'_r Reference> for Source[src]
impl<'_r> TryFrom<&'_r Reference> for StructureContainer[src]
impl<'_r> TryFrom<&'_r Reference> for StructureController[src]
impl<'_r> TryFrom<&'_r Reference> for StructureExtension[src]
impl<'_r> TryFrom<&'_r Reference> for StructureExtractor[src]
impl<'_r> TryFrom<&'_r Reference> for StructureKeeperLair[src]
impl<'_r> TryFrom<&'_r Reference> for StructureLab[src]
impl<'_r> TryFrom<&'_r Reference> for StructureLink[src]
impl<'_r> TryFrom<&'_r Reference> for StructureNuker[src]
impl<'_r> TryFrom<&'_r Reference> for StructureObserver[src]
impl<'_r> TryFrom<&'_r Reference> for StructurePowerBank[src]
impl<'_r> TryFrom<&'_r Reference> for StructurePowerSpawn[src]
impl<'_r> TryFrom<&'_r Reference> for StructurePortal[src]
impl<'_r> TryFrom<&'_r Reference> for StructureRampart[src]
impl<'_r> TryFrom<&'_r Reference> for StructureRoad[src]
impl<'_r> TryFrom<&'_r Reference> for StructureSpawn[src]
impl<'_r> TryFrom<&'_r Reference> for Spawning[src]
impl<'_r> TryFrom<&'_r Reference> for StructureStorage[src]
impl<'_r> TryFrom<&'_r Reference> for StructureTerminal[src]
impl<'_r> TryFrom<&'_r Reference> for StructureTower[src]
impl<'_r> TryFrom<&'_r Reference> for StructureWall[src]
impl<'_r> TryFrom<&'_r Reference> for Tombstone[src]
impl<T> TryFrom<Value> for JsVec<T> where
T: InstanceOf, [src]
T: InstanceOf,
impl<T> TryFrom<Array> for JsVec<T> where
T: InstanceOf, [src]
T: InstanceOf,
impl<T> TryFrom<Reference> for JsVec<T> where
T: InstanceOf, [src]
T: InstanceOf,