Trait std::str::OwnedStr[src]

pub trait OwnedStr {
    fn into_bytes(self) -> Vec<u8>;
    fn append(self, rhs: &str) -> String;
}

Methods for owned strings

Required Methods

fn into_bytes(self) -> Vec<u8>

Consumes the string, returning the underlying byte buffer.

The buffer does not have a null terminator.

fn append(self, rhs: &str) -> String

Pushes the given string onto this string, returning the concatenation of the two strings.

Implementors