pub struct BaseData { /* private fields */ }Implementations§
Source§impl BaseData
impl BaseData
pub fn new(data_type: EcDataType) -> Self
pub fn with_value(data_type: EcDataType, value: &EcValue) -> Self
pub fn data_type(&self) -> EcDataType
pub fn read(&self) -> EcValue
pub fn write(&self, value: &EcValue) -> bool
pub fn write_raw(&self, data: &[u8]) -> bool
pub fn raw_data(&self) -> Vec<u8> ⓘ
pub fn get_bit(&self, bit_index: usize) -> Option<bool>
pub fn set_bit(&self, bit_index: usize, value: bool) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BaseData
impl RefUnwindSafe for BaseData
impl Send for BaseData
impl Sync for BaseData
impl Unpin for BaseData
impl UnsafeUnpin for BaseData
impl UnwindSafe for BaseData
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