pub struct StringOps;Expand description
Operations on string objects.
Implementations§
Source§impl StringOps
impl StringOps
Sourcepub fn substring(obj: &RtObject, start: usize, len: usize) -> Option<RtObject>
pub fn substring(obj: &RtObject, start: usize, len: usize) -> Option<RtObject>
Take a substring.
Sourcepub fn to_char_list(obj: &RtObject) -> Option<Vec<RtObject>>
pub fn to_char_list(obj: &RtObject) -> Option<Vec<RtObject>>
Convert a string to a list of characters.
Sourcepub fn nat_to_string(n: &RtObject) -> Option<RtObject>
pub fn nat_to_string(n: &RtObject) -> Option<RtObject>
Convert a natural number to its string representation.
Auto Trait Implementations§
impl Freeze for StringOps
impl RefUnwindSafe for StringOps
impl Send for StringOps
impl Sync for StringOps
impl Unpin for StringOps
impl UnsafeUnpin for StringOps
impl UnwindSafe for StringOps
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