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§
Source§impl Ord for StringObj
impl Ord for StringObj
Source§impl PartialOrd for StringObj
impl PartialOrd for StringObj
impl Eq for StringObj
Auto Trait Implementations§
impl Freeze for StringObj
impl RefUnwindSafe for StringObj
impl !Send for StringObj
impl !Sync for StringObj
impl Unpin 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