Struct rmp_serde::Raw [] [src]

pub struct Raw { /* fields omitted */ }

Helper that allows to decode strings no matter whether they contain valid or invalid UTF-8.

Methods

impl Raw
[src]

Returns true if the raw is valid UTF-8.

Returns true if the raw contains invalid UTF-8 sequence.

Returns the string reference if the raw is valid UTF-8, or else None.

Returns the underlying Utf8Error if the raw contains invalid UTF-8 sequence, or else None.

Returns a byte slice of this raw's contents.

Consumes this object, yielding the string if the raw is valid UTF-8, or else None.

Converts a Raw into a byte vector.

Trait Implementations

impl Clone for Raw
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Raw
[src]

Formats the value using the given formatter.

impl PartialEq for Raw
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'de> Deserialize<'de> for Raw
[src]

Deserialize this value from the given Serde deserializer. Read more