Enum udf::MaxLenOptions
source · #[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 copy 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
source§fn eq(&self, other: &MaxLenOptions) -> bool
fn eq(&self, other: &MaxLenOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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