Struct uciengine::analysis::PvBuff [−][src]
PvBuff
Fields
len: usize
buff: [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
impl From<String> for PvBuff
[src]
implement From
Auto Trait Implementations
impl RefUnwindSafe for PvBuff
[src]
impl Send for PvBuff
[src]
impl Sync for PvBuff
[src]
impl Unpin for PvBuff
[src]
impl UnwindSafe for PvBuff
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,