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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more