pub struct QueryStrong(/* private fields */);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 duplicate 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<K> Index<K> for QueryStrong
impl<K> Index<K> for QueryStrong
Source§impl<'a> IntoIterator for &'a QueryStrong
impl<'a> IntoIterator for &'a QueryStrong
Source§type IntoIter = Box<dyn Iterator<Item = <&'a QueryStrong as IntoIterator>::Item> + 'a>
type IntoIter = Box<dyn Iterator<Item = <&'a QueryStrong as IntoIterator>::Item> + 'a>
Which kind of iterator are we turning this into?
Source§impl PartialEq for QueryStrong
impl PartialEq for QueryStrong
impl Eq for QueryStrong
impl StructuralPartialEq for QueryStrong
Auto Trait Implementations§
impl Freeze for QueryStrong
impl RefUnwindSafe for QueryStrong
impl Send for QueryStrong
impl Sync for QueryStrong
impl Unpin for QueryStrong
impl UnwindSafe for QueryStrong
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more