Struct wtf8_rs::wtf8buf::IntoStringError [−][src]
pub struct IntoStringError {
pub wtf8: Wtf8Buf,
// some fields omitted
}
Expand description
Errors which can occur when converting Wtf8Buf
to String
.
Fields
wtf8: Wtf8Buf
Implementations
Returns the index in the given string up to which valid UTF-8 was verified.
It is the maximum index such that wstr[..index].to_str()
would
return Ok(_)
.
The length provided is that of the invalid byte sequence
that starts at the index given by valid_up_to()
.
Decoding should resume after that sequence
(after inserting a U+FFFD REPLACEMENT CHARACTER
) in case
of lossy decoding.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more