#[non_exhaustive]#[repr(u32)]pub enum MaxLenOptions {
IntDefault = 21,
RealBase = 13,
Blob = 65_536,
MediumBlob = 16_777_216,
}Expand description
Helpful constants related to the max_length parameter
These can be helpful when calling UdfCfg::set_max_len()
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IntDefault = 21
The default max length for integers is 21
RealBase = 13
The default max length of a real value is 13 plus the result of
UdfCfg::get_decimals()
Blob = 65_536
A blob can be up to 65 KiB.
MediumBlob = 16_777_216
A mediumblob can be up to 16 MiB.
Trait Implementations§
Source§impl Clone for MaxLenOptions
impl Clone for MaxLenOptions
Source§fn clone(&self) -> MaxLenOptions
fn clone(&self) -> MaxLenOptions
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 MaxLenOptions
impl Debug for MaxLenOptions
Source§impl PartialEq for MaxLenOptions
impl PartialEq for MaxLenOptions
impl Copy for MaxLenOptions
impl Eq for MaxLenOptions
impl StructuralPartialEq for MaxLenOptions
Auto Trait Implementations§
impl Freeze for MaxLenOptions
impl RefUnwindSafe for MaxLenOptions
impl Send for MaxLenOptions
impl Sync for MaxLenOptions
impl Unpin for MaxLenOptions
impl UnwindSafe for MaxLenOptions
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