Struct rmp_serde::RawRef [] [src]

pub struct RawRef<'a> { /* fields omitted */ }

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

Methods

impl<'a> RawRef<'a>
[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.

Trait Implementations

impl<'a> Clone for RawRef<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Copy for RawRef<'a>
[src]

impl<'a> Debug for RawRef<'a>
[src]

Formats the value using the given formatter.

impl<'a> PartialEq for RawRef<'a>
[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 RawRef<'de>
[src]

Deserialize this value from the given Serde deserializer. Read more