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: u8,
priority: f64,
term_begin: i64,
term_end: i64
) -> Option<u32>
pub fn update(
&mut self,
id: u32,
activity: u8,
priority: f64,
term_begin: i64,
term_end: i64
) -> Option<u32>
pub fn delete(&mut self, id: u32)
pub fn all(&self, result: &mut HashSet<u32>)
pub fn uuid(&self, id: u32) -> Option<u128>
pub fn activity_index(&self) -> &IndexedDataFile<u8>
pub fn activity(&self, id: u32) -> Option<u8>
pub fn priority(&self, id: u32) -> Option<Priority>
pub fn term_begin_index(&self) -> &IndexedDataFile<i64>
pub fn term_begin(&self, id: u32) -> Option<i64>
pub fn term_end_index(&self) -> &IndexedDataFile<i64>
pub fn term_end(&self, id: u32) -> Option<i64>
pub fn last_updated_index(&self) -> &IndexedDataFile<i64>
pub fn last_updated(&self, id: u32) -> Option<i64>
pub fn field(&mut self, name: &str) -> Option<&Field>
pub fn field_update(&mut self, id: u32, field_name: &str, addr: *const i8)
pub fn field_value(&mut self, id: u32, name: &str) -> Option<&str>
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