Skip to main content

StrBuild

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§