pub struct Stringable { /* private fields */ }Implementations§
Source§impl Stringable
impl Stringable
Source§impl Stringable
impl Stringable
pub fn slug(self, separator: &str) -> Self
pub fn studly(self) -> Self
pub fn camel(self) -> Self
pub fn snake(self) -> Self
pub fn kebab(self) -> Self
pub fn title(self) -> Self
pub fn headline(self) -> Self
pub fn ucfirst(self) -> Self
pub fn lcfirst(self) -> Self
pub fn upper(self) -> Self
pub fn lower(self) -> Self
pub fn trim(self) -> Self
pub fn trim_slashes(self) -> Self
pub fn replace(self, search: &str, replace: &str) -> Self
pub fn replace_first(self, search: &str, replace: &str) -> Self
pub fn repeat(self, times: usize) -> Self
pub fn after(self, search: &str) -> Self
pub fn before(self, search: &str) -> Self
pub fn between(self, from: &str, to: &str) -> Self
pub fn limit(self, limit: usize, end: &str) -> Self
pub fn substr(self, start: usize, length: Option<usize>) -> Self
pub fn pad_left(self, length: usize, pad: &str) -> Self
pub fn pad_right(self, length: usize, pad: &str) -> Self
pub fn pad_both(self, length: usize, pad: &str) -> Self
pub fn mask(self, character: &str, start: usize, length: usize) -> Self
pub fn finish(self, cap: &str) -> Self
pub fn start(self, prefix: &str) -> Self
pub fn contains(&self, needle: &str) -> bool
pub fn contains_all(&self, needles: &[&str]) -> bool
pub fn starts_with(&self, needle: &str) -> bool
pub fn ends_with(&self, needle: &str) -> bool
pub fn position(&self, needle: &str, offset: usize) -> Option<usize>
pub fn length(&self) -> usize
pub fn is_ascii(&self) -> bool
pub fn is_json(&self) -> bool
pub fn is_url(&self) -> bool
pub fn is_uuid(&self) -> bool
pub fn word_count(&self) -> usize
pub fn append(self, suffix: &str) -> Self
pub fn prepend(self, prefix: &str) -> Self
Trait Implementations§
Source§impl Display for Stringable
impl Display for Stringable
Source§impl<'a> From<&'a str> for Stringable
impl<'a> From<&'a str> for Stringable
Source§impl From<String> for Stringable
impl From<String> for Stringable
Source§impl From<Stringable> for String
impl From<Stringable> for String
Source§fn from(s: Stringable) -> Self
fn from(s: Stringable) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Stringable
impl RefUnwindSafe for Stringable
impl Send for Stringable
impl Sync for Stringable
impl Unpin for Stringable
impl UnsafeUnpin for Stringable
impl UnwindSafe for Stringable
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> IntoLikeExpr for T
impl<T> IntoLikeExpr for T
fn into_like_expr(self) -> LikeExpr
Source§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type