Trait AsNullTermStr

Source
pub trait AsNullTermStr {
    // Required method
    fn as_null_term_str(&self) -> MeasuredNullTermStr<'_>;
}
Expand description

Allow NullTermString instances to be interpreted as references to MeasuredNullTermStr.

Required Methods§

Source

fn as_null_term_str(&self) -> MeasuredNullTermStr<'_>

Similar to AsRef or Borrow.

This is necessary because those traits require the use of DSTs (dynamically-sized types) and cannot be made to work with tagged lifetimes like we use in this module.

Implementors§