[−][src]Enum php_literal_parser::Key
Variants
Int(i64)
String(String)
Implementations
impl Key
[src]
pub fn is_int(&self) -> bool
[src]
Check if the key is an integer
pub fn is_string(&self) -> bool
[src]
Check if the key is a string
pub fn into_int(self) -> Option<i64>
[src]
Convert the key into a bool if it is one
pub fn into_string(self) -> Option<String>
[src]
Convert the key into a string if it is one
Trait Implementations
impl Borrow<str> for Key
[src]
impl Clone for Key
[src]
impl Debug for Key
[src]
impl<'de> Deserialize<'de> for Key
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Key, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for Key
[src]
impl Eq for Key
[src]
impl<'_> From<&'_ str> for Key
[src]
impl From<String> for Key
[src]
impl From<i64> for Key
[src]
impl Hash for Key
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Index<Key> for Value
[src]
type Output = Value
The returned type after indexing.
pub fn index(&self, index: Key) -> &Self::Output
[src]
impl PartialEq<Key> for Key
[src]
impl StructuralEq for Key
[src]
impl StructuralPartialEq for Key
[src]
Auto Trait Implementations
impl RefUnwindSafe for Key
[src]
impl Send for Key
[src]
impl Sync for Key
[src]
impl Unpin for Key
[src]
impl UnwindSafe for Key
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,