Struct swiss_army_knife::strings::LinuxStringEscapeSequence[][src]

pub struct LinuxStringEscapeSequence { /* fields omitted */ }

Unescapes a Linux string escaped using the seq_file_path() function.

Implementations

impl LinuxStringEscapeSequence[src]

pub const HorizontalTab: Self[src]

Horizontal Tab (TAB), \t.

pub const LineFeed: Self[src]

Line Feed (LF), \n.

pub const Space: Self[src]

Space (SP), .

pub fn new(unescaped_byte: u8) -> Self[src]

New sequence.

pub fn unescape_linux_string(
    linux_string_with_escaped_characters: Vec<u8>,
    escape_sequences: &[Self]
) -> Vec<u8>
[src]

Works backwards as that requires copy operations to move fewer bytes in total.

Trait Implementations

impl Clone for LinuxStringEscapeSequence[src]

impl Copy for LinuxStringEscapeSequence[src]

impl Debug for LinuxStringEscapeSequence[src]

impl Eq for LinuxStringEscapeSequence[src]

impl Hash for LinuxStringEscapeSequence[src]

impl Ord for LinuxStringEscapeSequence[src]

impl PartialEq<LinuxStringEscapeSequence> for LinuxStringEscapeSequence[src]

impl PartialOrd<LinuxStringEscapeSequence> for LinuxStringEscapeSequence[src]

impl StructuralEq for LinuxStringEscapeSequence[src]

impl StructuralPartialEq for LinuxStringEscapeSequence[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.