Struct os_str_bytes::RawOsString
source · pub struct RawOsString(/* private fields */);
Expand description
A container for owned byte strings converted by this crate.
For more information, see RawOsStr
.
Implementations§
source§impl RawOsString
impl RawOsString
sourcepub fn new<S>(string: S) -> Self
pub fn new<S>(string: S) -> Self
Wraps a platform-native string, without copying or encoding conversion.
§Examples
use std::env;
use os_str_bytes::RawOsString;
let os_string = env::current_exe()?.into_os_string();
println!("{:?}", RawOsString::new(os_string));
sourcepub fn from_string(string: String) -> Self
👎Deprecated since 7.0.0: use new
instead
pub fn from_string(string: String) -> Self
new
insteadWraps a string, without copying or encoding conversion.
§Examples
use os_str_bytes::RawOsString;
let string = "foobar".to_owned();
let raw = RawOsString::from_string(string.clone());
assert_eq!(string, raw);
sourcepub unsafe fn from_encoded_vec_unchecked(string: Vec<u8>) -> Self
pub unsafe fn from_encoded_vec_unchecked(string: Vec<u8>) -> Self
Equivalent to OsString::from_encoded_bytes_unchecked
.
§Examples
use std::env;
use os_str_bytes::RawOsString;
let os_string = env::current_exe()?.into_os_string();
let raw = RawOsString::new(os_string);
let raw_bytes = raw.clone().into_encoded_vec();
assert_eq!(raw, unsafe {
RawOsString::from_encoded_vec_unchecked(raw_bytes)
});
sourcepub fn assert_from_raw_vec(string: Vec<u8>) -> Self
Available on crate feature conversions
only.
pub fn assert_from_raw_vec(string: Vec<u8>) -> Self
conversions
only.Equivalent to OsStringBytes::assert_from_raw_vec
.
§Examples
use std::env;
use os_str_bytes::RawOsString;
let os_string = env::current_exe()?.into_os_string();
let raw = RawOsString::new(os_string);
let raw_bytes = raw.clone().into_raw_vec();
assert_eq!(raw, RawOsString::assert_from_raw_vec(raw_bytes));
sourcepub fn from_raw_vec(string: Vec<u8>) -> Result<Self, EncodingError>
Available on crate feature checked_conversions
only.
pub fn from_raw_vec(string: Vec<u8>) -> Result<Self, EncodingError>
checked_conversions
only.Equivalent to OsStringBytes::from_raw_vec
.
§Examples
use std::env;
use os_str_bytes::RawOsString;
let os_string = env::current_exe()?.into_os_string();
let raw = RawOsString::new(os_string);
let raw_bytes = raw.clone().into_raw_vec();
assert_eq!(Ok(raw), RawOsString::from_raw_vec(raw_bytes));
sourcepub unsafe fn from_raw_vec_unchecked(string: Vec<u8>) -> Self
👎Deprecated since 6.6.0: use assert_from_raw_vec
or
from_encoded_vec_unchecked
insteadAvailable on crate feature conversions
only.
pub unsafe fn from_raw_vec_unchecked(string: Vec<u8>) -> Self
assert_from_raw_vec
or
from_encoded_vec_unchecked
insteadconversions
only.Converts and wraps a byte string.
§Safety
The string must be valid for the unspecified encoding used by this crate.
§Examples
use std::env;
use os_str_bytes::RawOsString;
let os_string = env::current_exe()?.into_os_string();
let raw = RawOsString::new(os_string);
let raw_bytes = raw.clone().into_raw_vec();
assert_eq!(raw, unsafe {
RawOsString::from_raw_vec_unchecked(raw_bytes)
});
sourcepub fn clear(&mut self)
pub fn clear(&mut self)
Equivalent to String::clear
.
§Examples
use std::env;
use os_str_bytes::RawOsString;
let os_string = env::current_exe()?.into_os_string();
let mut raw = RawOsString::new(os_string);
raw.clear();
assert!(raw.is_empty());
sourcepub fn into_box(self) -> Box<RawOsStr>
pub fn into_box(self) -> Box<RawOsStr>
Equivalent to String::into_boxed_str
.
§Examples
use os_str_bytes::RawOsString;
let string = "foobar".to_owned();
let raw = RawOsString::new(string.clone());
assert_eq!(string, *raw.into_box());
sourcepub fn into_encoded_vec(self) -> Vec<u8>
pub fn into_encoded_vec(self) -> Vec<u8>
Equivalent to OsString::into_encoded_bytes
.
The returned string will not use the unspecified encoding. It can
only be passed to methods accepting the internal encoding of OsStr
,
such as from_encoded_vec_unchecked
.
§Examples
use os_str_bytes::RawOsString;
let string = "foobar".to_owned();
let raw = RawOsString::new(string.clone());
assert_eq!(string.into_bytes(), raw.into_encoded_vec());
sourcepub fn into_os_string(self) -> OsString
pub fn into_os_string(self) -> OsString
Converts this representation back to a platform-native string, without copying or encoding conversion.
§Examples
use std::env;
use os_str_bytes::RawOsString;
let os_string = env::current_exe()?.into_os_string();
let raw = RawOsString::new(os_string.clone());
assert_eq!(os_string, raw.into_os_string());
sourcepub fn into_raw_vec(self) -> Vec<u8>
Available on crate feature conversions
only.
pub fn into_raw_vec(self) -> Vec<u8>
conversions
only.Equivalent to OsStringBytes::into_raw_vec
.
§Examples
use os_str_bytes::RawOsString;
let string = "foobar".to_owned();
let raw = RawOsString::new(string.clone());
assert_eq!(string.into_bytes(), raw.into_raw_vec());
sourcepub fn into_string(self) -> Result<String, Self>
pub fn into_string(self) -> Result<String, Self>
Equivalent to OsString::into_string
.
§Examples
use os_str_bytes::RawOsString;
let string = "foobar".to_owned();
let raw = RawOsString::new(string.clone());
assert_eq!(Ok(string), raw.into_string());
sourcepub fn shrink_to_fit(&mut self)
pub fn shrink_to_fit(&mut self)
Equivalent to String::shrink_to_fit
.
§Examples
use os_str_bytes::RawOsString;
let string = "foobar".to_owned();
let mut raw = RawOsString::new(string.clone());
raw.shrink_to_fit();
assert_eq!(string, raw);
sourcepub fn split_off(&mut self, at: usize) -> Self
pub fn split_off(&mut self, at: usize) -> Self
Equivalent to String::split_off
.
§Panics
Panics if the index is not a valid boundary.
§Examples
use os_str_bytes::RawOsString;
let mut raw = RawOsString::new("foobar".to_owned());
assert_eq!("bar", raw.split_off(3));
assert_eq!("foo", raw);
sourcepub fn truncate(&mut self, new_len: usize)
pub fn truncate(&mut self, new_len: usize)
Equivalent to String::truncate
.
§Panics
Panics if the index is not a valid boundary.
§Examples
use os_str_bytes::RawOsString;
let mut raw = RawOsString::new("foobar".to_owned());
raw.truncate(3);
assert_eq!("foo", raw);
Methods from Deref<Target = RawOsStr>§
sourcepub fn as_encoded_bytes(&self) -> &[u8] ⓘ
pub fn as_encoded_bytes(&self) -> &[u8] ⓘ
Equivalent to OsStr::as_encoded_bytes
.
The returned string will not use the unspecified encoding. It can
only be passed to methods accepting the internal encoding of OsStr
,
such as from_encoded_bytes_unchecked
.
§Examples
use os_str_bytes::RawOsStr;
let string = "foobar";
let raw = RawOsStr::new(string);
assert_eq!(string.as_bytes(), raw.as_encoded_bytes());
sourcepub fn as_os_str(&self) -> &OsStr
pub fn as_os_str(&self) -> &OsStr
Converts this representation back to a platform-native string, without copying or encoding conversion.
§Examples
use std::env;
use os_str_bytes::RawOsStr;
let os_string = env::current_exe()?.into_os_string();
let raw = RawOsStr::new(&os_string);
assert_eq!(os_string, raw.as_os_str());
sourcepub fn contains<P>(&self, pat: P) -> boolwhere
P: Pattern,
pub fn contains<P>(&self, pat: P) -> boolwhere
P: Pattern,
Equivalent to OsStrBytesExt::contains
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert!(raw.contains("oo"));
assert!(!raw.contains("of"));
sourcepub fn ends_with<P>(&self, pat: P) -> boolwhere
P: Pattern,
pub fn ends_with<P>(&self, pat: P) -> boolwhere
P: Pattern,
Equivalent to OsStrBytesExt::ends_with
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert!(raw.ends_with("bar"));
assert!(!raw.ends_with("foo"));
sourcepub fn ends_with_os(&self, pat: &Self) -> bool
Available on crate feature conversions
only.
pub fn ends_with_os(&self, pat: &Self) -> bool
conversions
only.Equivalent to OsStrBytesExt::ends_with_os
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert!(raw.ends_with_os(RawOsStr::new("bar")));
assert!(!raw.ends_with_os(RawOsStr::new("foo")));
sourcepub fn find<P>(&self, pat: P) -> Option<usize>where
P: Pattern,
pub fn find<P>(&self, pat: P) -> Option<usize>where
P: Pattern,
Equivalent to OsStrBytesExt::find
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert_eq!(Some(1), raw.find("o"));
assert_eq!(None, raw.find("of"));
sourcepub unsafe fn get_unchecked<I>(&self, index: I) -> &Selfwhere
I: SliceIndex,
pub unsafe fn get_unchecked<I>(&self, index: I) -> &Selfwhere
I: SliceIndex,
Equivalent to OsStrBytesExt::get_unchecked
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert_eq!("foo", unsafe { raw.get_unchecked(..3) });
assert_eq!("bar", unsafe { raw.get_unchecked(3..) });
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Equivalent to OsStr::is_empty
.
§Examples
use os_str_bytes::RawOsStr;
assert!(RawOsStr::new("").is_empty());
assert!(!RawOsStr::new("foobar").is_empty());
sourcepub fn repeat(&self, n: usize) -> RawOsString
pub fn repeat(&self, n: usize) -> RawOsString
Equivalent to OsStrBytesExt::repeat
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foo");
assert_eq!("foofoofoo", raw.repeat(3));
sourcepub fn rfind<P>(&self, pat: P) -> Option<usize>where
P: Pattern,
pub fn rfind<P>(&self, pat: P) -> Option<usize>where
P: Pattern,
Equivalent to OsStrBytesExt::rfind
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert_eq!(Some(2), raw.rfind("o"));
assert_eq!(None, raw.rfind("of"));
sourcepub fn rsplit<P>(&self, pat: P) -> RawRSplit<'_, P> ⓘwhere
P: Pattern,
pub fn rsplit<P>(&self, pat: P) -> RawRSplit<'_, P> ⓘwhere
P: Pattern,
Equivalent to OsStrBytesExt::rsplit
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert!(raw.rsplit("o").eq(["bar", "", "f"]));
sourcepub fn rsplit_once<P>(&self, pat: P) -> Option<(&Self, &Self)>where
P: Pattern,
pub fn rsplit_once<P>(&self, pat: P) -> Option<(&Self, &Self)>where
P: Pattern,
Equivalent to OsStrBytesExt::rsplit_once
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert_eq!(
Some((RawOsStr::new("fo"), RawOsStr::new("bar"))),
raw.rsplit_once("o"),
);
assert_eq!(None, raw.rsplit_once("of"));
sourcepub fn split<P>(&self, pat: P) -> RawSplit<'_, P> ⓘwhere
P: Pattern,
pub fn split<P>(&self, pat: P) -> RawSplit<'_, P> ⓘwhere
P: Pattern,
Equivalent to OsStrBytesExt::split
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert!(raw.split("o").eq(["f", "", "bar"]));
sourcepub fn split_at(&self, mid: usize) -> (&Self, &Self)
pub fn split_at(&self, mid: usize) -> (&Self, &Self)
Equivalent to OsStrBytesExt::split_at
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert_eq!(
(RawOsStr::new("fo"), RawOsStr::new("obar")),
raw.split_at(2),
);
sourcepub fn split_once<P>(&self, pat: P) -> Option<(&Self, &Self)>where
P: Pattern,
pub fn split_once<P>(&self, pat: P) -> Option<(&Self, &Self)>where
P: Pattern,
Equivalent to OsStrBytesExt::split_once
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert_eq!(
Some((RawOsStr::new("f"), RawOsStr::new("obar"))),
raw.split_once("o"),
);
assert_eq!(None, raw.split_once("of"));
sourcepub fn starts_with<P>(&self, pat: P) -> boolwhere
P: Pattern,
pub fn starts_with<P>(&self, pat: P) -> boolwhere
P: Pattern,
Equivalent to OsStrBytesExt::starts_with
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert!(raw.starts_with("foo"));
assert!(!raw.starts_with("bar"));
sourcepub fn starts_with_os(&self, pat: &Self) -> bool
Available on crate feature conversions
only.
pub fn starts_with_os(&self, pat: &Self) -> bool
conversions
only.Equivalent to OsStrBytesExt::starts_with_os
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("foobar");
assert!(raw.starts_with_os(RawOsStr::new("foo")));
assert!(!raw.starts_with_os(RawOsStr::new("bar")));
sourcepub fn strip_prefix<P>(&self, pat: P) -> Option<&Self>where
P: Pattern,
pub fn strip_prefix<P>(&self, pat: P) -> Option<&Self>where
P: Pattern,
Equivalent to OsStrBytesExt::strip_prefix
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("111foo1bar111");
assert_eq!(Some(RawOsStr::new("11foo1bar111")), raw.strip_prefix("1"));
assert_eq!(None, raw.strip_prefix("o"));
sourcepub fn strip_suffix<P>(&self, pat: P) -> Option<&Self>where
P: Pattern,
pub fn strip_suffix<P>(&self, pat: P) -> Option<&Self>where
P: Pattern,
Equivalent to OsStrBytesExt::strip_suffix
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("111foo1bar111");
assert_eq!(Some(RawOsStr::new("111foo1bar11")), raw.strip_suffix("1"));
assert_eq!(None, raw.strip_suffix("o"));
sourcepub fn to_os_str(&self) -> Cow<'_, OsStr>
👎Deprecated since 6.6.0: use as_os_str
instead
pub fn to_os_str(&self) -> Cow<'_, OsStr>
as_os_str
insteadConverts this representation back to a platform-native string.
When possible, use RawOsStrCow::into_os_str
for a more efficient
conversion on some platforms.
§Examples
use std::env;
use os_str_bytes::RawOsStr;
let os_string = env::current_exe()?.into_os_string();
let raw = RawOsStr::new(&os_string);
assert_eq!(os_string, raw.to_os_str());
sourcepub fn to_raw_bytes(&self) -> Cow<'_, [u8]>
Available on crate feature conversions
only.
pub fn to_raw_bytes(&self) -> Cow<'_, [u8]>
conversions
only.Equivalent to OsStrBytes::to_raw_bytes
.
§Examples
use os_str_bytes::RawOsStr;
let string = "foobar";
let raw = RawOsStr::new(string);
assert_eq!(string.as_bytes(), &*raw.to_raw_bytes());
sourcepub fn to_str(&self) -> Option<&str>
pub fn to_str(&self) -> Option<&str>
Equivalent to OsStr::to_str
.
§Examples
use os_str_bytes::RawOsStr;
let string = "foobar";
let raw = RawOsStr::new(string);
assert_eq!(Some(string), raw.to_str());
sourcepub fn to_str_lossy(&self) -> Cow<'_, str>
pub fn to_str_lossy(&self) -> Cow<'_, str>
Equivalent to OsStr::to_string_lossy
.
§Examples
use std::env;
use os_str_bytes::RawOsStr;
let os_string = env::current_exe()?.into_os_string();
let raw = RawOsStr::new(&os_string);
println!("{}", raw.to_str_lossy());
sourcepub fn trim_end_matches<P>(&self, pat: P) -> &Selfwhere
P: Pattern,
pub fn trim_end_matches<P>(&self, pat: P) -> &Selfwhere
P: Pattern,
Equivalent to OsStrBytesExt::trim_end_matches
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("111foo1bar111");
assert_eq!("111foo1bar", raw.trim_end_matches("1"));
assert_eq!("111foo1bar111", raw.trim_end_matches("o"));
sourcepub fn trim_matches<P>(&self, pat: P) -> &Selfwhere
P: Pattern,
pub fn trim_matches<P>(&self, pat: P) -> &Selfwhere
P: Pattern,
Equivalent to OsStrBytesExt::trim_matches
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("111foo1bar111");
assert_eq!("foo1bar", raw.trim_matches("1"));
assert_eq!("111foo1bar111", raw.trim_matches("o"));
sourcepub fn trim_start_matches<P>(&self, pat: P) -> &Selfwhere
P: Pattern,
pub fn trim_start_matches<P>(&self, pat: P) -> &Selfwhere
P: Pattern,
Equivalent to OsStrBytesExt::trim_start_matches
.
§Examples
use os_str_bytes::RawOsStr;
let raw = RawOsStr::new("111foo1bar111");
assert_eq!("foo1bar111", raw.trim_start_matches("1"));
assert_eq!("111foo1bar111", raw.trim_start_matches("o"));
sourcepub fn utf8_chunks(&self) -> Utf8Chunks<'_> ⓘ
pub fn utf8_chunks(&self) -> Utf8Chunks<'_> ⓘ
Equivalent to OsStrBytesExt::utf8_chunks
.
§Examples
use os_str_bytes::RawOsStr;
fn to_str_lossy<F>(raw: &RawOsStr, mut push: F)
where
F: FnMut(&str),
{
for (invalid, string) in raw.utf8_chunks() {
if !invalid.as_os_str().is_empty() {
push("\u{FFFD}");
}
push(string);
}
}
Trait Implementations§
source§impl AsRef<OsStr> for RawOsString
impl AsRef<OsStr> for RawOsString
source§impl AsRef<RawOsStr> for RawOsString
impl AsRef<RawOsStr> for RawOsString
source§impl Borrow<RawOsStr> for RawOsString
impl Borrow<RawOsStr> for RawOsString
source§impl Clone for RawOsString
impl Clone for RawOsString
source§fn clone(&self) -> RawOsString
fn clone(&self) -> RawOsString
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RawOsString
impl Debug for RawOsString
source§impl Default for RawOsString
impl Default for RawOsString
source§fn default() -> RawOsString
fn default() -> RawOsString
source§impl Deref for RawOsString
impl Deref for RawOsString
source§impl From<OsString> for RawOsString
impl From<OsString> for RawOsString
source§impl From<RawOsString> for Box<RawOsStr>
impl From<RawOsString> for Box<RawOsStr>
source§fn from(value: RawOsString) -> Self
fn from(value: RawOsString) -> Self
source§impl From<RawOsString> for Cow<'_, RawOsStr>
impl From<RawOsString> for Cow<'_, RawOsStr>
source§fn from(value: RawOsString) -> Self
fn from(value: RawOsString) -> Self
source§impl From<RawOsString> for OsString
impl From<RawOsString> for OsString
source§fn from(value: RawOsString) -> Self
fn from(value: RawOsString) -> Self
source§impl From<String> for RawOsString
impl From<String> for RawOsString
source§impl Hash for RawOsString
impl Hash for RawOsString
source§impl<Idx> Index<Idx> for RawOsStringwhere
Idx: SliceIndex,
impl<Idx> Index<Idx> for RawOsStringwhere
Idx: SliceIndex,
source§impl Ord for RawOsString
impl Ord for RawOsString
source§fn cmp(&self, other: &RawOsString) -> Ordering
fn cmp(&self, other: &RawOsString) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq<&OsStr> for RawOsString
impl PartialEq<&OsStr> for RawOsString
source§impl PartialEq<&RawOsStr> for RawOsString
impl PartialEq<&RawOsStr> for RawOsString
source§impl PartialEq<&str> for RawOsString
impl PartialEq<&str> for RawOsString
source§impl PartialEq<OsStr> for RawOsString
impl PartialEq<OsStr> for RawOsString
source§impl PartialEq<OsString> for RawOsString
impl PartialEq<OsString> for RawOsString
source§impl PartialEq<RawOsStr> for RawOsString
impl PartialEq<RawOsStr> for RawOsString
source§impl PartialEq<RawOsString> for &OsStr
impl PartialEq<RawOsString> for &OsStr
source§fn eq(&self, other: &RawOsString) -> bool
fn eq(&self, other: &RawOsString) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RawOsString> for &RawOsStr
impl PartialEq<RawOsString> for &RawOsStr
source§fn eq(&self, other: &RawOsString) -> bool
fn eq(&self, other: &RawOsString) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RawOsString> for &str
impl PartialEq<RawOsString> for &str
source§fn eq(&self, other: &RawOsString) -> bool
fn eq(&self, other: &RawOsString) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RawOsString> for OsStr
impl PartialEq<RawOsString> for OsStr
source§fn eq(&self, other: &RawOsString) -> bool
fn eq(&self, other: &RawOsString) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RawOsString> for OsString
impl PartialEq<RawOsString> for OsString
source§fn eq(&self, other: &RawOsString) -> bool
fn eq(&self, other: &RawOsString) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RawOsString> for RawOsStr
impl PartialEq<RawOsString> for RawOsStr
source§fn eq(&self, other: &RawOsString) -> bool
fn eq(&self, other: &RawOsString) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RawOsString> for String
impl PartialEq<RawOsString> for String
source§fn eq(&self, other: &RawOsString) -> bool
fn eq(&self, other: &RawOsString) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RawOsString> for str
impl PartialEq<RawOsString> for str
source§fn eq(&self, other: &RawOsString) -> bool
fn eq(&self, other: &RawOsString) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<String> for RawOsString
impl PartialEq<String> for RawOsString
source§impl PartialEq<str> for RawOsString
impl PartialEq<str> for RawOsString
source§impl PartialEq for RawOsString
impl PartialEq for RawOsString
source§fn eq(&self, other: &RawOsString) -> bool
fn eq(&self, other: &RawOsString) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RawOsString
impl PartialOrd for RawOsString
source§fn partial_cmp(&self, other: &RawOsString) -> Option<Ordering>
fn partial_cmp(&self, other: &RawOsString) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more