Trait melib::email::address::StrBuild

source ·
pub trait StrBuild {
    // Required methods
    fn new(string: &[u8], slice: &[u8]) -> Self;
    fn raw(&self) -> &[u8] ;
    fn val(&self) -> &[u8] ;
}
Expand description

Structs implementing this trait must contain a StrBuilder field.

Required Methods§

source

fn new(string: &[u8], slice: &[u8]) -> Self

Create a new Self out of a string and a slice

source

fn raw(&self) -> &[u8]

Get the slice part of the string

source

fn val(&self) -> &[u8]

Get the entire string as a slice

Object Safety§

This trait is not object safe.

Implementors§