pub struct CommentBlock { /* private fields */ }Expand description
Comment block (Block ID 5936)
User comment string entered with setObserverComment.
Implementations§
Source§impl CommentBlock
impl CommentBlock
pub fn tow_seconds(&self) -> f64
pub fn tow_ms(&self) -> u32
pub fn wnc(&self) -> u16
pub fn comment_len(&self) -> u16
pub fn comment_data(&self) -> &[u8] ⓘ
Sourcepub fn comment_text_lossy(&self) -> String
pub fn comment_text_lossy(&self) -> String
Best-effort UTF-8 text view of the comment bytes.
Trait Implementations§
Source§impl Clone for CommentBlock
impl Clone for CommentBlock
Source§fn clone(&self) -> CommentBlock
fn clone(&self) -> CommentBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommentBlock
impl Debug for CommentBlock
Auto Trait Implementations§
impl Freeze for CommentBlock
impl RefUnwindSafe for CommentBlock
impl Send for CommentBlock
impl Sync for CommentBlock
impl Unpin for CommentBlock
impl UnsafeUnpin for CommentBlock
impl UnwindSafe for CommentBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more