Struct gopher_core::str::GopherStr
[−]
[src]
pub struct GopherStr { /* fields omitted */ }A string of bytes as sent over the wire.
The contents are assumed to be encoded in ISO-8859-1 (Latin-1).
Methods
impl GopherStr[src]
fn new(buf: EasyBuf) -> Self
Create a GopherStr from an EasyBuf.
fn from_latin1(bytes: &[u8]) -> Self
fn into_buf(self) -> EasyBuf
Unwrap the inner EasyBuf.