pub struct ExplainObject<'a> { /* private fields */ }Implementations§
Source§impl<'a> ExplainObject<'a>
impl<'a> ExplainObject<'a>
pub fn new(control: ProductionControl<'a>) -> Self
pub fn insert( &mut self, key: &'static str, value: ExplainValue, ) -> Result<(), SQLError>
pub fn text(&mut self, key: &'static str, value: &str) -> Result<(), SQLError>
pub fn label( &mut self, key: &'static str, value: &'static str, ) -> Result<(), SQLError>
pub fn number(&mut self, key: &'static str, value: u64) -> Result<(), SQLError>
pub fn optional_number( &mut self, key: &'static str, value: Option<u64>, ) -> Result<(), SQLError>
pub fn float(&mut self, key: &'static str, value: f64) -> Result<(), SQLError>
pub fn boolean( &mut self, key: &'static str, value: bool, ) -> Result<(), SQLError>
pub fn null(&mut self, key: &'static str) -> Result<(), SQLError>
pub fn finish(self) -> Result<ExplainValue, SQLError>
Auto Trait Implementations§
impl<'a> Freeze for ExplainObject<'a>
impl<'a> RefUnwindSafe for ExplainObject<'a>
impl<'a> Send for ExplainObject<'a>
impl<'a> Sync for ExplainObject<'a>
impl<'a> Unpin for ExplainObject<'a>
impl<'a> UnsafeUnpin for ExplainObject<'a>
impl<'a> UnwindSafe for ExplainObject<'a>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more