pub struct BoolType;Expand description
Built-in Bool type extension
Trait Implementations§
Source§impl TypeExtension for BoolType
impl TypeExtension for BoolType
Source§fn type_category(&self) -> TypeCategory
fn type_category(&self) -> TypeCategory
Category for type coercion
Source§fn serialize(&self, value: &dyn Any) -> Result<Vec<u8>, String>
fn serialize(&self, value: &dyn Any) -> Result<Vec<u8>, String>
Serialize extension value to bytes for storage
Source§fn deserialize(&self, bytes: &[u8]) -> Result<Box<dyn Any>, String>
fn deserialize(&self, bytes: &[u8]) -> Result<Box<dyn Any>, String>
Deserialize bytes back to extension value
Source§fn to_pgwire_type(&self) -> Type
fn to_pgwire_type(&self) -> Type
Convert to PostgreSQL type for protocol
Auto Trait Implementations§
impl Freeze for BoolType
impl RefUnwindSafe for BoolType
impl Send for BoolType
impl Sync for BoolType
impl Unpin for BoolType
impl UnwindSafe for BoolType
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