pub struct TextFunctions<'a> {
pub substring: &'a str,
pub trim_fraction: &'a dyn Fn(&str) -> String,
pub concat: &'a dyn Fn(&[&str]) -> String,
}Expand description
How an engine spells the text functions float_text uses. Each
closure is handed the SQL of its operand.
Fields§
§substring: &'a strThe engine’s name for the three-argument SUBSTR.
trim_fraction: &'a dyn Fn(&str) -> StringA text that holds a point with its trailing zeros, and then a point
left bare, removed: rtrim_fraction where RTRIM takes the
characters to remove.
concat: &'a dyn Fn(&[&str]) -> StringText joined, in the engine’s spelling.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TextFunctions<'a>
impl<'a> !Send for TextFunctions<'a>
impl<'a> !Sync for TextFunctions<'a>
impl<'a> !UnwindSafe for TextFunctions<'a>
impl<'a> Forget for TextFunctions<'a>
impl<'a> Freeze for TextFunctions<'a>
impl<'a> Move for TextFunctions<'a>
impl<'a> Unpin for TextFunctions<'a>
impl<'a> UnsafeUnpin for TextFunctions<'a>
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