pub struct StringObj { /* private fields */ }Implementations§
Source§impl StringObj
impl StringObj
pub fn with_str(s: String) -> StringObj
pub fn as_str(&self) -> &str
pub fn into_string(self) -> String
pub fn len(&self) -> usize
pub fn get_byte(&self, i: usize) -> Option<&u8>
pub fn slice(&self, begin: isize, end: isize) -> StringObj
pub fn iter(&self) -> StringIter<'_>
Trait Implementations§
impl Eq for StringObj
Source§impl Ord for StringObj
impl Ord for StringObj
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
impl !Send for StringObj
impl !Sync for StringObj
impl Freeze for StringObj
impl RefUnwindSafe for StringObj
impl Unpin for StringObj
impl UnsafeUnpin for StringObj
impl UnwindSafe for StringObj
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