pub enum ByteEncoding {
Empty,
String,
Hex,
Path,
}Variants§
Implementations§
Source§impl ByteEncoding
impl ByteEncoding
pub fn decode(&self, input: &str) -> Result<Vec<u8>, ByteEncodingDecodeError>
pub fn decode_hex(input: &str) -> Result<Vec<u8>, ByteEncodingDecodeError>
pub fn decode_path(input: &str) -> Result<Vec<u8>, ByteEncodingDecodeError>
Trait Implementations§
Source§impl Clone for ByteEncoding
impl Clone for ByteEncoding
Source§fn clone(&self) -> ByteEncoding
fn clone(&self) -> ByteEncoding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ByteEncoding
impl Debug for ByteEncoding
Source§impl Default for ByteEncoding
impl Default for ByteEncoding
Source§fn default() -> ByteEncoding
fn default() -> ByteEncoding
Returns the “default value” for a type. Read more
Source§impl Display for ByteEncoding
impl Display for ByteEncoding
Source§impl ValueEnum for ByteEncoding
impl ValueEnum for ByteEncoding
impl Copy for ByteEncoding
Auto Trait Implementations§
impl Freeze for ByteEncoding
impl RefUnwindSafe for ByteEncoding
impl Send for ByteEncoding
impl Sync for ByteEncoding
impl Unpin for ByteEncoding
impl UnwindSafe for ByteEncoding
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