pub enum NativePathEncoding {
UnixBytes,
WindowsWide,
Utf8,
}Expand description
Lossless platform encoding used for a native filesystem path.
Variants§
UnixBytes
Raw Unix OsStr bytes.
WindowsWide
Little-endian Windows UTF-16 code units.
Utf8
UTF-8 fallback for other targets.
Trait Implementations§
Source§impl Clone for NativePathEncoding
impl Clone for NativePathEncoding
Source§fn clone(&self) -> NativePathEncoding
fn clone(&self) -> NativePathEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NativePathEncoding
Source§impl Debug for NativePathEncoding
impl Debug for NativePathEncoding
Source§impl<'de> Deserialize<'de> for NativePathEncoding
impl<'de> Deserialize<'de> for NativePathEncoding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NativePathEncoding
Source§impl JsonSchema for NativePathEncoding
impl JsonSchema for NativePathEncoding
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for NativePathEncoding
impl Ord for NativePathEncoding
Source§fn cmp(&self, other: &NativePathEncoding) -> Ordering
fn cmp(&self, other: &NativePathEncoding) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NativePathEncoding
impl PartialEq for NativePathEncoding
Source§impl PartialOrd for NativePathEncoding
impl PartialOrd for NativePathEncoding
Source§impl Serialize for NativePathEncoding
impl Serialize for NativePathEncoding
impl StructuralPartialEq for NativePathEncoding
Auto Trait Implementations§
impl Freeze for NativePathEncoding
impl RefUnwindSafe for NativePathEncoding
impl Send for NativePathEncoding
impl Sync for NativePathEncoding
impl Unpin for NativePathEncoding
impl UnsafeUnpin for NativePathEncoding
impl UnwindSafe for NativePathEncoding
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