Struct uciengine::analysis::PvBuff[][src]

pub struct PvBuff {
    pub len: usize,
    pub buff: [u8; 50],
}

PvBuff

Fields

len: usizebuff: [u8; 50]

Implementations

impl PvBuff[src]

PvBuff implementation

pub fn new() -> Self[src]

create new PvBuff

pub fn to_opt(self) -> Option<String>[src]

convert PvBuff to option ( None if empty, Some(contents) otherwise )

pub fn set<T: AsRef<str>>(&mut self, value: T) -> Self[src]

set PvBuff ( value will be trimmed to buffer size )

pub fn reset(&mut self) -> Self[src]

reset PvBuff to empty buffer

pub fn set_trim<T: AsRef<str>>(&mut self, value: T, trim: char) -> Self[src]

Trait Implementations

impl Clone for PvBuff[src]

impl Copy for PvBuff[src]

impl Debug for PvBuff[src]

implement Debug for PvBuff

impl Display for PvBuff[src]

implement Display for PvBuff

impl From<&'_ str> for PvBuff[src]

implement From<&str> for PvBuff

impl From<Option<String>> for PvBuff[src]

implement From<Option> for PvBuff

impl From<String> for PvBuff[src]

implement From for PvBuff

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.