Struct querystrong::QueryStrong
source · pub struct QueryStrong(_);
Implementations§
Methods from Deref<Target = Value>§
pub fn is_map(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_list(&self) -> bool
pub fn as_slice(&self) -> Option<&[Self]>
pub fn as_map(&self) -> Option<&BTreeMap<String, Value>>
pub fn as_str(&self) -> Option<&str>
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
this is a general-purpose predicate that is broader than just whether the value is an Empty. Zero-length Values of any sort will return true from is_empty
pub fn len(&self) -> usize
pub fn append( &mut self, key: impl Into<IndexPath>, value: impl Into<Value> ) -> Result<()>
pub fn get(&self, key: impl Into<IndexPath>) -> Option<&Value>
pub fn get_str(&self, key: impl Into<IndexPath>) -> Option<&str>
pub fn get_slice(&self, key: impl Into<IndexPath>) -> Option<&[Value]>
pub fn get_map( &self, key: impl Into<IndexPath> ) -> Option<&BTreeMap<String, Value>>
Trait Implementations§
source§impl Clone for QueryStrong
impl Clone for QueryStrong
source§fn clone(&self) -> QueryStrong
fn clone(&self) -> QueryStrong
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QueryStrong
impl Debug for QueryStrong
source§impl Default for QueryStrong
impl Default for QueryStrong
source§impl Deref for QueryStrong
impl Deref for QueryStrong
source§impl DerefMut for QueryStrong
impl DerefMut for QueryStrong
source§impl Display for QueryStrong
impl Display for QueryStrong
source§impl FromStr for QueryStrong
impl FromStr for QueryStrong
source§impl<'a> IntoIterator for &'a QueryStrong
impl<'a> IntoIterator for &'a QueryStrong
§type IntoIter = Box<dyn Iterator<Item = <&'a QueryStrong as IntoIterator>::Item> + 'a, Global>
type IntoIter = Box<dyn Iterator<Item = <&'a QueryStrong as IntoIterator>::Item> + 'a, Global>
Which kind of iterator are we turning this into?
source§impl PartialEq<QueryStrong> for QueryStrong
impl PartialEq<QueryStrong> for QueryStrong
source§fn eq(&self, other: &QueryStrong) -> bool
fn eq(&self, other: &QueryStrong) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.