pub struct SvStr { /* private fields */ }
Expand description
Scalar Value string type.
Implementations
sourceimpl SvStr
impl SvStr
pub fn char_at(&self, index: i64) -> char
pub fn concat<S: AsRef<str>>(&self, other: S) -> SvStr
pub fn contains<R: AnySvStrRegex>(&self, r: R) -> bool
pub fn ends_with<S: AsRef<str>>(&self, suffix: S) -> bool
pub fn starts_with<S: AsRef<str>>(&self, prefix: S) -> bool
pub fn index_of<S: AsRef<str>>(&self, other: S) -> i64
pub fn is_empty(&self) -> bool
pub fn len(&self) -> i64
pub fn repeat(&self, count: i64) -> SvStr
pub fn slice<I: SvStrSliceIndex>(&self, index: I) -> SvStr
pub fn substr(&self, from: i64, len: i64) -> SvStr
pub fn substring<I: SvStrSliceIndex>(&self, index: I) -> SvStr
pub fn to_lowercase(&self) -> SvStr
pub fn to_uppercase(&self) -> SvStr
pub fn trim(&self) -> SvStr
pub fn trim_left(&self) -> SvStr
pub fn trim_right(&self) -> SvStr
pub fn chars(&self) -> Vec<char>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn iter(&self) -> impl Iterator<Item = char> + '_
Trait Implementations
sourceimpl PartialOrd<SvStr> for SvStr
impl PartialOrd<SvStr> for SvStr
sourcefn partial_cmp(&self, other: &SvStr) -> Option<Ordering>
fn partial_cmp(&self, other: &SvStr) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl StructuralPartialEq for SvStr
Auto Trait Implementations
impl RefUnwindSafe for SvStr
impl Send for SvStr
impl Sync for SvStr
impl Unpin for SvStr
impl UnwindSafe for SvStr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more