[−][src]Struct protobuf::Chars
Thin wrapper around Bytes
which guarantees that bytes are valid UTF-8 string.
Methods
impl Chars
[src]
pub fn new() -> Chars
[src]
New empty object.
pub fn from_bytes(bytes: Bytes) -> Result<Chars, Utf8Error>
[src]
Try convert from Bytes
pub fn len(&self) -> usize
[src]
Len in bytes.
pub fn is_empty(&self) -> bool
[src]
Self-explanatory
Trait Implementations
impl Clear for Chars
[src]
impl Clone for Chars
[src]
impl Debug for Chars
[src]
impl Default for Chars
[src]
impl Deref for Chars
[src]
impl Display for Chars
[src]
impl Eq for Chars
[src]
impl<'a> From<&'a str> for Chars
[src]
impl From<String> for Chars
[src]
impl Hash for Chars
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Chars
[src]
fn cmp(&self, other: &Chars) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Chars> for Chars
[src]
impl PartialOrd<Chars> for Chars
[src]
fn partial_cmp(&self, other: &Chars) -> Option<Ordering>
[src]
fn lt(&self, other: &Chars) -> bool
[src]
fn le(&self, other: &Chars) -> bool
[src]
fn gt(&self, other: &Chars) -> bool
[src]
fn ge(&self, other: &Chars) -> bool
[src]
impl ProtobufValue for Chars
[src]
fn as_ref(&self) -> ProtobufValueRef
[src]
fn as_any(&self) -> &dyn Any
[src]
fn is_non_zero(&self) -> bool
[src]
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]
impl StructuralEq for Chars
[src]
impl StructuralPartialEq for Chars
[src]
Auto Trait Implementations
impl RefUnwindSafe for Chars
impl Send for Chars
impl Sync for Chars
impl Unpin for Chars
impl UnwindSafe for Chars
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,