pub struct OpaqueHostPath(/* private fields */);Implementations§
Source§impl OpaqueHostPath
impl OpaqueHostPath
pub fn utf8(value: String) -> Result<Self, OpaqueHostPathError>
pub fn unix_bytes(value: Vec<u8>) -> Result<Self, OpaqueHostPathError>
pub fn byte_len(&self) -> usize
pub fn display_text(&self) -> Cow<'_, str>
pub fn as_utf8(&self) -> Option<&str>
pub fn as_unix_bytes(&self) -> Option<&[u8]>
Trait Implementations§
Source§impl Clone for OpaqueHostPath
impl Clone for OpaqueHostPath
Source§impl Debug for OpaqueHostPath
impl Debug for OpaqueHostPath
Source§impl<'de> Deserialize<'de> for OpaqueHostPath
impl<'de> Deserialize<'de> for OpaqueHostPath
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 OpaqueHostPath
Source§impl Hash for OpaqueHostPath
impl Hash for OpaqueHostPath
Source§impl PartialEq for OpaqueHostPath
impl PartialEq for OpaqueHostPath
Source§impl Serialize for OpaqueHostPath
impl Serialize for OpaqueHostPath
impl StructuralPartialEq for OpaqueHostPath
Auto Trait Implementations§
impl Freeze for OpaqueHostPath
impl RefUnwindSafe for OpaqueHostPath
impl Send for OpaqueHostPath
impl Sync for OpaqueHostPath
impl Unpin for OpaqueHostPath
impl UnsafeUnpin for OpaqueHostPath
impl UnwindSafe for OpaqueHostPath
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