pub struct MetaLibExtUtil {
pub key: String,
pub data: Vec<i64>,
pub active: bool,
pub flags: u32,
}Expand description
An extended utility type for MetaLib.
Fields§
§key: String§data: Vec<i64>§active: bool§flags: u32Implementations§
Source§impl MetaLibExtUtil
impl MetaLibExtUtil
pub fn new(key: &str) -> Self
pub fn push(&mut self, v: i64)
pub fn pop(&mut self) -> Option<i64>
pub fn sum(&self) -> i64
pub fn min_val(&self) -> Option<i64>
pub fn max_val(&self) -> Option<i64>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn set_flag(&mut self, bit: u32)
pub fn has_flag(&self, bit: u32) -> bool
pub fn deactivate(&mut self)
pub fn activate(&mut self)
Trait Implementations§
Source§impl Clone for MetaLibExtUtil
impl Clone for MetaLibExtUtil
Source§fn clone(&self) -> MetaLibExtUtil
fn clone(&self) -> MetaLibExtUtil
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 MetaLibExtUtil
impl Debug for MetaLibExtUtil
Source§impl Default for MetaLibExtUtil
impl Default for MetaLibExtUtil
Source§fn default() -> MetaLibExtUtil
fn default() -> MetaLibExtUtil
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetaLibExtUtil
impl RefUnwindSafe for MetaLibExtUtil
impl Send for MetaLibExtUtil
impl Sync for MetaLibExtUtil
impl Unpin for MetaLibExtUtil
impl UnsafeUnpin for MetaLibExtUtil
impl UnwindSafe for MetaLibExtUtil
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