pub struct Query(/* private fields */);Expand description
A generic query
Implementations§
Source§impl Query
impl Query
Sourcepub fn from_slice(buffer: &[u8]) -> Self
pub fn from_slice(buffer: &[u8]) -> Self
Creates a query from a raw bytes
Sourcepub fn from_canon<C>(c: &C) -> Selfwhere
C: Canon,
pub fn from_canon<C>(c: &C) -> Selfwhere
C: Canon,
Creates a query from a type implementing Canon
Sourcepub fn cast<C>(&self) -> Result<C, CanonError>where
C: Canon,
pub fn cast<C>(&self) -> Result<C, CanonError>where
C: Canon,
Casts the generic query to given type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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