[][src]Trait mynewt::encoding::coap_context::ToBytesOptionalNull

pub trait ToBytesOptionalNull {
    fn to_bytes_optional_nul(&self) -> &[u8];
}

Convert the type to array of bytes that may or may not end with null

Required methods

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

Convert the type to array of bytes that may or may not end with null

Loading content...

Implementations on Foreign Types

impl ToBytesOptionalNull for CStr[src]

Convert the type to array of bytes that may or may not end with null. CStr always ends with null.

fn to_bytes_optional_nul(&self) -> &[u8][src]

Convert the type to array of bytes that may or may not end with null. CStr always ends with null.

Loading content...

Implementors

impl ToBytesOptionalNull for [u8][src]

Convert the type to array of bytes that may or may not end with null

fn to_bytes_optional_nul(&self) -> &[u8][src]

Convert the type to array of bytes that may or may not end with null

impl ToBytesOptionalNull for str[src]

Convert the type to array of bytes that may or may not end with null

fn to_bytes_optional_nul(&self) -> &[u8][src]

Convert the type to array of bytes that may or may not end with null

impl<'_> ToBytesOptionalNull for &'_ str[src]

Convert the type to array of bytes that may or may not end with null

fn to_bytes_optional_nul(&self) -> &[u8][src]

Convert the type to array of bytes that may or may not end with null

Loading content...