pub enum HelperSummary {
Static(RecoveredSql),
Template(TemplateHelper),
Builder(BuilderHelper),
}Expand description
A helper function that is summarized once, where it is declared.
Variants§
Static(RecoveredSql)
Fixed text; arguments never reach the SQL.
Template(TemplateHelper)
Untagged template over its own parameters.
Builder(BuilderHelper)
Appends fixed fragments to one SQLStatement parameter and returns it.
Implementations§
Source§impl HelperSummary
impl HelperSummary
Sourcepub fn fill(
&self,
site: &ImportedSite,
helper: &Path,
caller: &Path,
) -> Option<RecoveredSql>
pub fn fill( &self, site: &ImportedSite, helper: &Path, caller: &Path, ) -> Option<RecoveredSql>
The text that fills a call’s hole.
Helper text is attributed to helper. A string literal spliced into a
template is attributed to caller instead, at the literal’s own line.
Trait Implementations§
Source§impl Clone for HelperSummary
impl Clone for HelperSummary
impl Eq for HelperSummary
Source§impl PartialEq for HelperSummary
impl PartialEq for HelperSummary
impl StructuralPartialEq for HelperSummary
Auto Trait Implementations§
impl Forget for HelperSummary
impl Freeze for HelperSummarywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<EmbeddedSqlSourcePosition>: Freeze,
PhantomData<u32>: Freeze,
*const ArcInner<Vec<(usize, usize, u32)>> is !null: Freeze,
PhantomData<ArcInner<Vec<(usize, usize, u32)>>>: Freeze,
PhantomData<usize>: Freeze,
impl Move for HelperSummary
impl RefUnwindSafe for HelperSummary
impl Send for HelperSummary
impl Sync for HelperSummary
impl Unpin for HelperSummary
impl UnsafeUnpin for HelperSummarywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<EmbeddedSqlSourcePosition>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
*const ArcInner<Vec<(usize, usize, u32)>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<(usize, usize, u32)>>>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
impl UnwindSafe for HelperSummary
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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