Trait stdweb::unstable::TryFrom
[−]
[src]
pub trait TryFrom<T>: Sized { type Error; fn try_from(_: T) -> Result<Self, Self::Error>; }
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
Implementors
impl TryFrom<Reference> for Reference
impl<'a> TryFrom<&'a Reference> for &'a Reference
impl TryFrom<i8> for Value
impl TryFrom<i16> for Value
impl TryFrom<i32> for Value
impl TryFrom<u8> for Value
impl TryFrom<u16> for Value
impl TryFrom<u32> for Value
impl TryFrom<f32> for Value
impl TryFrom<f64> for Value
impl TryFrom<Undefined> for Value
impl<'a> TryFrom<&'a Undefined> for Value
impl<'a> TryFrom<&'a mut Undefined> for Value
impl TryFrom<Null> for Value
impl<'a> TryFrom<&'a Null> for Value
impl<'a> TryFrom<&'a mut Null> for Value
impl TryFrom<bool> for Value
impl<'a> TryFrom<&'a bool> for Value
impl<'a> TryFrom<&'a mut bool> for Value
impl<'a> TryFrom<&'a str> for Value
impl<'a> TryFrom<&'a mut str> for Value
impl TryFrom<String> for Value
impl<'a> TryFrom<&'a String> for Value
impl<'a> TryFrom<&'a mut String> for Value
impl TryFrom<char> for Value
impl<'a> TryFrom<&'a char> for Value
impl<'a> TryFrom<&'a mut char> for Value
impl<T> TryFrom<Vec<T>> for Value where
T: Into<Value>,impl<'a, T> TryFrom<&'a Vec<T>> for Value where
&'a T: Into<Value>,impl<'a, T> TryFrom<&'a mut Vec<T>> for Value where
&'a T: Into<Value>,impl<'a, T> TryFrom<&'a [T]> for Value where
&'a T: Into<Value>,impl<'a, T> TryFrom<&'a mut [T]> for Value where
&'a T: Into<Value>,impl<K, V> TryFrom<BTreeMap<K, V>> for Value where
K: Into<String>,
V: Into<Value>,impl<'a, K, V> TryFrom<&'a BTreeMap<K, V>> for Value where
&'a K: Into<String>,
&'a V: Into<Value>,impl<'a, K, V> TryFrom<&'a mut BTreeMap<K, V>> for Value where
&'a K: Into<String>,
&'a V: Into<Value>,impl<K, V> TryFrom<HashMap<K, V>> for Value where
K: Into<String> + Hash + Eq,
V: Into<Value>,impl<'a, K, V> TryFrom<&'a HashMap<K, V>> for Value where
K: Hash + Eq,
&'a K: Into<String>,
&'a V: Into<Value>,impl<'a, K, V> TryFrom<&'a mut HashMap<K, V>> for Value where
K: Hash + Eq,
&'a K: Into<String>,
&'a V: Into<Value>,impl TryFrom<Reference> for Value
impl TryFrom<i64> for Value
impl TryFrom<u64> for Value
impl TryFrom<Value> for Undefined
impl TryFrom<Value> for Null
impl TryFrom<Value> for bool
impl TryFrom<Value> for u8
impl TryFrom<Value> for u16
impl TryFrom<Value> for u32
impl TryFrom<Value> for u64
impl TryFrom<Value> for i8
impl TryFrom<Value> for i16
impl TryFrom<Value> for i32
impl TryFrom<Value> for i64
impl TryFrom<Value> for f64
impl<V: TryFrom<Value, Error = ConversionError>> TryFrom<Value> for BTreeMap<String, V>
impl<V: TryFrom<Value, Error = ConversionError>> TryFrom<Value> for HashMap<String, V>
impl<T: TryFrom<Value, Error = ConversionError>> TryFrom<Value> for Vec<T>
impl TryFrom<Value> for String
impl TryFrom<Value> for Reference
impl<'a> TryFrom<&'a Value> for &'a str
impl<'a> TryFrom<&'a Value> for &'a Reference
impl TryFrom<Value> for Option<bool>
impl TryFrom<Value> for Option<u8>
impl TryFrom<Value> for Option<u16>
impl TryFrom<Value> for Option<u32>
impl TryFrom<Value> for Option<u64>
impl TryFrom<Value> for Option<i8>
impl TryFrom<Value> for Option<i16>
impl TryFrom<Value> for Option<i32>
impl TryFrom<Value> for Option<i64>
impl TryFrom<Value> for Option<f64>
impl<V> TryFrom<Value> for Option<BTreeMap<String, V>> where
V: TryFrom<Value, Error = ConversionError>,impl<V> TryFrom<Value> for Option<HashMap<String, V>> where
V: TryFrom<Value, Error = ConversionError>,impl<T> TryFrom<Value> for Option<Vec<T>> where
T: TryFrom<Value, Error = ConversionError>,impl TryFrom<Value> for Option<String>
impl TryFrom<Value> for Option<Reference>
impl<'a> TryFrom<&'a Value> for Option<&'a str>
impl<'a> TryFrom<&'a Value> for Option<&'a Reference>
impl TryFrom<i64> for Number
impl TryFrom<u64> for Number
impl TryFrom<i8> for Number
impl TryFrom<i16> for Number
impl TryFrom<i32> for Number
impl TryFrom<u8> for Number
impl TryFrom<u16> for Number
impl TryFrom<u32> for Number
impl TryFrom<f32> for Number
impl TryFrom<f64> for Number
impl TryFrom<Number> for i8
impl TryFrom<Number> for i16
impl TryFrom<Number> for i32
impl TryFrom<Number> for u8
impl TryFrom<Number> for u16
impl TryFrom<Number> for i64
impl TryFrom<Number> for u32
impl TryFrom<Number> for u64
impl TryFrom<Number> for f64
impl TryFrom<Document> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for Document where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<Window> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for Window where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<Event> for Reference
impl TryFrom<ChangeEvent> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for ChangeEvent where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<UiEvent> for Reference
impl TryFrom<MouseEvent> for Reference
impl TryFrom<ClickEvent> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for ClickEvent where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<DoubleClickEvent> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for DoubleClickEvent where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<KeyboardEvent> for Reference
impl TryFrom<KeypressEvent> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for KeypressEvent where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<FocusRelatedEvent> for Reference
impl TryFrom<FocusEvent> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for FocusEvent where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<BlurEvent> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for BlurEvent where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<HashChangeEvent> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for HashChangeEvent where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<EventTarget> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for EventTarget where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<Node> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for Node where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<Element> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for Element where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<HtmlElement> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for HtmlElement where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<InputElement> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for InputElement where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<TokenList> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for TokenList where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<TextNode> for Reference
impl TryFrom<NodeList> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for NodeList where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<StringMap> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for StringMap where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<Location> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for Location where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl TryFrom<Storage> for Reference
impl<T: TryInto<Reference>> TryFrom<T> for Storage where
<T as TryInto<Reference>>::Error: Into<Box<Error>>,impl<T: Serialize> TryFrom<Serde<T>> for Value
impl<'a, T: Serialize> TryFrom<&'a Serde<T>> for Value
impl<'a, T: Serialize> TryFrom<&'a mut Serde<T>> for Value
impl<'de, T: Deserialize<'de>> TryFrom<Value> for Serde<T>
impl TryFrom<JsonValue> for Value