[−][src]Struct rand_regex::EncodedString
A string together with its Encoding
.
Implementations
impl EncodedString
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
Obtains the raw bytes of this string.
pub fn as_str(&self) -> Result<&str, Utf8Error>
[src]
Tries to convert this instance as a UTF-8 string.
Errors
If this instance is not compatible with UTF-8, returns an error in the
same manner as std::str::from_utf8()
.
pub fn encoding(&self) -> Encoding
[src]
Returns the encoding of this string.
Trait Implementations
impl Debug for EncodedString
[src]
impl Distribution<EncodedString> for Regex
[src]
pub fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> EncodedString
[src]
pub fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
R: Rng,
impl Eq for EncodedString
[src]
impl From<String> for EncodedString
[src]
impl From<Vec<u8, Global>> for EncodedString
[src]
impl Hash for EncodedString
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for EncodedString
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<EncodedString> for EncodedString
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<EncodedString> for EncodedString
[src]
Auto Trait Implementations
impl RefUnwindSafe for EncodedString
[src]
impl Send for EncodedString
[src]
impl Sync for EncodedString
[src]
impl Unpin for EncodedString
[src]
impl UnwindSafe for EncodedString
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,