[−][src]Struct iso8583_rs::iso8583::bitmap::Bitmap
This struct represents a bitmap that can support 192 (64*3) fields
Implementations
impl Bitmap
[src]
Operations on bitmap
pub fn new(b1: u64, b2: u64, b3: u64) -> Bitmap
[src]
Creates and returns a new Bitmap
pub fn from_vec(bmp_data: &Vec<u8>) -> Bitmap
[src]
pub fn is_on(&self, pos: u32) -> bool
[src]
Returns a boolean to indicate if the specified 'pos' is turned on in the bitmap
pub fn set_on(&mut self, pos: u32)
[src]
Sets the position in bitmap
pub fn hex_string(&self) -> String
[src]
Returns the bitmap as a hexadecimal string
pub fn as_vec(&self) -> Vec<u8>
[src]
Returns the bitmap as a Vec
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Bitmap
impl Send for Bitmap
impl Sync for Bitmap
impl Unpin for Bitmap
impl UnwindSafe for Bitmap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,