Struct versatile_data::Data
source · [−]pub struct Data { /* private fields */ }
Implementations
sourceimpl Data
impl Data
pub fn new(dir: &str) -> Option<Data>
pub fn insert(
&mut self,
activity: bool,
priority: f64,
term_begin: i64,
term_end: i64
) -> Option<u32>
pub fn update(
&mut self,
id: u32,
activity: bool,
priority: f64,
term_begin: i64,
term_end: i64
) -> Option<u32>
pub fn update_field(&mut self, id: u32, field_name: &str, cont: impl Into<String>)
pub fn delete(&mut self, id: u32)
pub fn all(&self) -> HashSet<u32>
pub fn uuid(&self, id: u32) -> u128
pub fn uuid_str(&self, id: u32) -> String
pub fn activity(&self, id: u32) -> bool
pub fn priority(&self, id: u32) -> f64
pub fn term_begin(&self, id: u32) -> i64
pub fn term_end(&self, id: u32) -> i64
pub fn last_updated(&self, id: u32) -> i64
pub fn field_str(&self, id: u32, name: &str) -> &str
pub fn field_num(&self, id: u32, name: &str) -> f64
pub fn load_fields(&mut self)
pub fn activity_index(&self) -> &IdxSized<u8>
pub fn term_begin_index(&self) -> &IdxSized<i64>
pub fn term_end_index(&self) -> &IdxSized<i64>
pub fn last_updated_index(&self) -> &IdxSized<i64>
pub fn field(&self, name: &str) -> Option<&Field>
pub fn search(&self, condition: SearchCondition<'_>) -> Reducer<'_>
Auto Trait Implementations
impl RefUnwindSafe for Data
impl !Send for Data
impl !Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more