[][src]Struct concatsql::prelude::WrapString

pub struct WrapString<'a> { /* fields omitted */ }

Wraps a String type.

Implementations

impl<'a> WrapString<'a>[src]

pub fn simulate(&self) -> String[src]

Simulates the SQL statement that will be executed in the database.

If multiple features are specified, they may not be displayed correctly.
⚠️ This crate actually using static placeholders.

Examples

assert_eq!(prep!("SELECT").simulate(),       "SELECT");
assert_eq!(prep!("O''Reilly").simulate(),    "O''Reilly");
assert_eq!(prep!("\"O'Reilly\"").simulate(), "\"O'Reilly\"");
assert_eq!((prep!("foo")+"bar").simulate(),  "foo'bar'");
assert_eq!((prep!("foo")+42i32).simulate(),  "foo42");
assert_eq!((prep!("foo")+"42").simulate(),   "foo'42'");
assert_eq!((prep!()+"O'Reilly").simulate(),  "'O''Reilly'");

Trait Implementations

impl<'a, '_, '_> Add<&'_ &'_ str> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a, '_, '_> Add<&'_ Cow<'_, str>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a, '_> Add<&'_ String> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a, '_> Add<&'_ Vec<u8>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a, '_> Add<&'_ str> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a, 'b> Add<&'b WrapString<'a>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<()> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a, '_> Add<Cow<'_, str>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a, '_> Add<Option<&'_ str>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a, '_> Add<Option<Cow<'_, str>>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<String>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<Vec<u8>>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<f32>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<f64>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<i128>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<i16>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<i32>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<i64>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<i8>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<isize>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<u128>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<u16>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<u32>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<u64>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<u8>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Option<usize>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<String> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<Vec<u8>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<WrapString<'a>> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<f32> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<f64> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<i128> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<i16> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<i32> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<i64> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<i8> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<isize> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<u128> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<u16> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<u32> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<u64> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<u8> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Add<usize> for WrapString<'a>[src]

type Output = WrapString<'a>

The resulting type after applying the + operator.

impl<'a> Clone for WrapString<'a>[src]

impl<'a> Debug for WrapString<'a>[src]

impl<'a> IntoWrapString<'a> for WrapString<'a>[src]

impl<'a, 'b> IntoWrapString<'a> for &'b WrapString<'a>[src]

impl<'a> PartialEq<WrapString<'a>> for WrapString<'a>[src]

impl<'a> StructuralPartialEq for WrapString<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for WrapString<'a>

impl<'a> Send for WrapString<'a>

impl<'a> Sync for WrapString<'a>

impl<'a> Unpin for WrapString<'a>

impl<'a> UnwindSafe for WrapString<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,