Skip to main content

Module traits

Module traits 

Source
Expand description

Trait implementations for str.

Re-exportsยง

use super::ParseBoolError; ๐Ÿ”’
use crate::cmp::Ordering; ๐Ÿ”’
use crate::intrinsics::unchecked_sub; ๐Ÿ”’ Experimental
use crate::slice::SliceIndex; ๐Ÿ”’
use crate::ub_checks::assert_unsafe_precondition; ๐Ÿ”’ Experimental
use crate::ops; ๐Ÿ”’
use crate::range; ๐Ÿ”’

Traitsยง

FromStr
Parse a value from a string

Functionsยง

check_range ๐Ÿ”’
Check that a range is in bounds for slicing a string. If this returns true, it is safe to call slice.get_unchecked(range) or slice.get_unchecked_mut(range).