[][src]Struct iso8583_rs::iso8583::bitmap::Bitmap

pub struct Bitmap { /* fields omitted */ }

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

impl Debug for Bitmap[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,