pub struct SliceRef<'a> {
pub column: &'a str,
pub value: &'a str,
}Expand description
The one slice a load was told to replace, as a statement writes it.
The value is not known when the SQL is composed — it is a different day on
every run — so what travels here is the text that names it: the load
procedure’s own parameter, already marked so each procedure grammar can
decorate it its own way. A renderer puts value where its statement takes
the slice and never invents a literal of its own.
Fields§
§column: &'a strThe time-slice column the value is compared against.
value: &'a strThe text that names the value — the bound parameter, in the spelling composed statements use. Copy it through; do not re-spell it.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for SliceRef<'a>
impl<'a> Freeze for SliceRef<'a>
impl<'a> Move for SliceRef<'a>
impl<'a> RefUnwindSafe for SliceRef<'a>
impl<'a> Send for SliceRef<'a>
impl<'a> Sync for SliceRef<'a>
impl<'a> Unpin for SliceRef<'a>
impl<'a> UnsafeUnpin for SliceRef<'a>
impl<'a> UnwindSafe for SliceRef<'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