pub struct SerialType(/* private fields */);Expand description
Sqlite Serial Types https://www.sqlite.org/fileformat.html#record_format
Implementations§
Source§impl SerialType
impl SerialType
pub fn u64_is_valid_serial_type(n: u64) -> bool
pub const fn null() -> Self
pub const fn i8() -> Self
pub const fn i16() -> Self
pub const fn i24() -> Self
pub const fn i32() -> Self
pub const fn i48() -> Self
pub const fn i64() -> Self
pub const fn f64() -> Self
pub const fn const_int0() -> Self
pub const fn const_int1() -> Self
pub const fn blob(size: u64) -> Self
pub const fn text(size: u64) -> Self
pub const fn kind(&self) -> SerialTypeKind
pub const fn size(&self) -> usize
Trait Implementations§
Source§impl Clone for SerialType
impl Clone for SerialType
Source§fn clone(&self) -> SerialType
fn clone(&self) -> SerialType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SerialType
Source§impl Debug for SerialType
impl Debug for SerialType
impl Eq for SerialType
Source§impl From<SerialType> for u64
impl From<SerialType> for u64
Source§fn from(serial_type: SerialType) -> Self
fn from(serial_type: SerialType) -> Self
Converts to this type from the input type.
Source§impl<T: AsValueRef> From<T> for SerialType
impl<T: AsValueRef> From<T> for SerialType
Source§impl Ord for SerialType
impl Ord for SerialType
Source§fn cmp(&self, other: &SerialType) -> Ordering
fn cmp(&self, other: &SerialType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SerialType
impl PartialEq for SerialType
Source§impl PartialOrd for SerialType
impl PartialOrd for SerialType
impl StructuralPartialEq for SerialType
Auto Trait Implementations§
impl Freeze for SerialType
impl RefUnwindSafe for SerialType
impl Send for SerialType
impl Sync for SerialType
impl Unpin for SerialType
impl UnsafeUnpin for SerialType
impl UnwindSafe for SerialType
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<K, Q> Comparable<Q> for K
impl<K, Q> Comparable<Q> for K
Source§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
Source§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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