pub struct Format { /* private fields */ }Implementations§
Source§impl Format
impl Format
pub fn type_(self) -> Type
pub fn w(self) -> usize
pub fn d(self) -> usize
pub fn new(type_: Type, w: Width, d: Decimals) -> Option<Self>
pub fn default_for_width(var_width: VarWidth) -> Self
pub fn with_max_width(self) -> Self
pub fn fixed_from(source: &UncheckedFormat) -> Self
pub fn var_width(self) -> VarWidth
pub fn var_type(self) -> VarType
Sourcepub fn check_width_compatibility(
self,
var_width: VarWidth,
) -> Result<Self, Error>
pub fn check_width_compatibility( self, var_width: VarWidth, ) -> Result<Self, Error>
Checks whether this format specification is valid for a variable with
width var_width.
pub fn default_value(&self) -> Datum<ByteString>
pub fn resize(&mut self, width: VarWidth)
pub fn codepage_to_unicode(&mut self)
Trait Implementations§
impl Copy for Format
impl Eq for Format
Source§impl From<Format> for ValueFormat
impl From<Format> for ValueFormat
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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