[−][src]Struct concatsql::prelude::WrapString
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.
pub fn add(self, other: &&str) -> WrapString<'a>
[src]
impl<'a, '_, '_> Add<&'_ Cow<'_, str>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: &Cow<'_, str>) -> WrapString<'a>
[src]
impl<'a, '_> Add<&'_ String> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: &String) -> WrapString<'a>
[src]
impl<'a, '_> Add<&'_ Vec<u8>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: &Vec<u8>) -> WrapString<'a>
[src]
impl<'a, '_> Add<&'_ str> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: &str) -> WrapString<'a>
[src]
impl<'a, 'b> Add<&'b WrapString<'a>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: &'b WrapString<'a>) -> WrapString<'a>
[src]
impl<'a> Add<()> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, _other: ()) -> WrapString<'a>
[src]
impl<'a, '_> Add<Cow<'_, str>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Cow<'_, str>) -> WrapString<'a>
[src]
impl<'a, '_> Add<Option<&'_ str>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<&str>) -> WrapString<'a>
[src]
impl<'a, '_> Add<Option<Cow<'_, str>>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<Cow<'_, str>>) -> WrapString<'a>
[src]
impl<'a> Add<Option<String>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<String>) -> WrapString<'a>
[src]
impl<'a> Add<Option<Vec<u8>>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<Vec<u8>>) -> WrapString<'a>
[src]
impl<'a> Add<Option<f32>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<f32>) -> WrapString<'a>
[src]
impl<'a> Add<Option<f64>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<f64>) -> WrapString<'a>
[src]
impl<'a> Add<Option<i128>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<i128>) -> WrapString<'a>
[src]
impl<'a> Add<Option<i16>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<i16>) -> WrapString<'a>
[src]
impl<'a> Add<Option<i32>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<i32>) -> WrapString<'a>
[src]
impl<'a> Add<Option<i64>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<i64>) -> WrapString<'a>
[src]
impl<'a> Add<Option<i8>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<i8>) -> WrapString<'a>
[src]
impl<'a> Add<Option<isize>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<isize>) -> WrapString<'a>
[src]
impl<'a> Add<Option<u128>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<u128>) -> WrapString<'a>
[src]
impl<'a> Add<Option<u16>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<u16>) -> WrapString<'a>
[src]
impl<'a> Add<Option<u32>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<u32>) -> WrapString<'a>
[src]
impl<'a> Add<Option<u64>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<u64>) -> WrapString<'a>
[src]
impl<'a> Add<Option<u8>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<u8>) -> WrapString<'a>
[src]
impl<'a> Add<Option<usize>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Option<usize>) -> WrapString<'a>
[src]
impl<'a> Add<String> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: String) -> WrapString<'a>
[src]
impl<'a> Add<Vec<u8>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: Vec<u8>) -> WrapString<'a>
[src]
impl<'a> Add<WrapString<'a>> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: WrapString<'a>) -> WrapString<'a>
[src]
impl<'a> Add<f32> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: f32) -> WrapString<'a>
[src]
impl<'a> Add<f64> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: f64) -> WrapString<'a>
[src]
impl<'a> Add<i128> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: i128) -> WrapString<'a>
[src]
impl<'a> Add<i16> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: i16) -> WrapString<'a>
[src]
impl<'a> Add<i32> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: i32) -> WrapString<'a>
[src]
impl<'a> Add<i64> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: i64) -> WrapString<'a>
[src]
impl<'a> Add<i8> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: i8) -> WrapString<'a>
[src]
impl<'a> Add<isize> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: isize) -> WrapString<'a>
[src]
impl<'a> Add<u128> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: u128) -> WrapString<'a>
[src]
impl<'a> Add<u16> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: u16) -> WrapString<'a>
[src]
impl<'a> Add<u32> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: u32) -> WrapString<'a>
[src]
impl<'a> Add<u64> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: u64) -> WrapString<'a>
[src]
impl<'a> Add<u8> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: u8) -> WrapString<'a>
[src]
impl<'a> Add<usize> for WrapString<'a>
[src]
type Output = WrapString<'a>
The resulting type after applying the +
operator.
pub fn add(self, other: usize) -> WrapString<'a>
[src]
impl<'a> Clone for WrapString<'a>
[src]
pub fn clone(&self) -> WrapString<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for WrapString<'a>
[src]
impl<'a> IntoWrapString<'a> for WrapString<'a>
[src]
pub fn into_wrapstring(self) -> WrapString<'a>
[src]
impl<'a, 'b> IntoWrapString<'a> for &'b WrapString<'a>
[src]
pub fn into_wrapstring(self) -> WrapString<'a>
[src]
impl<'a> PartialEq<WrapString<'a>> for WrapString<'a>
[src]
pub fn eq(&self, other: &WrapString<'a>) -> bool
[src]
pub fn ne(&self, other: &WrapString<'a>) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,