Struct customasm::util::BitVec

source ·
pub struct BitVec {
    pub spans: Vec<BitVecSpan>,
    /* private fields */
}

Fields§

§spans: Vec<BitVecSpan>

Implementations§

source§

impl BitVec

source

pub fn new() -> BitVec

source

pub fn write_bit(&mut self, index: usize, value: bool)

source

pub fn read_bit(&self, index: usize) -> bool

source

pub fn len(&self) -> usize

source

pub fn write_bigint(&mut self, index: usize, bigint: &BigInt)

source

pub fn write_bigint_with_span( &mut self, span: Span, offset: usize, addr: BigInt, bigint: &BigInt )

source

pub fn mark_span( &mut self, offset: Option<usize>, size: usize, addr: BigInt, span: Span )

source

pub fn to_bigint(&self) -> BigInt

source§

impl BitVec

source

pub fn format_binary(&self) -> Vec<u8>

source

pub fn format_binstr(&self) -> String

source

pub fn format_hexstr(&self) -> String

source

pub fn format_str(&self, bits_per_digit: usize) -> String

source

pub fn format_bindump(&self) -> String

source

pub fn format_hexdump(&self) -> String

source

pub fn format_dump( &self, digit_bits: usize, byte_bits: usize, bytes_per_line: usize ) -> String

source

pub fn format_mif(&self) -> String

source

pub fn format_intelhex(&self, address_unit: usize) -> String

source

pub fn format_separator(&self, radix: usize, separator: &str) -> String

source

pub fn format_c_array(&self, radix: usize) -> String

source

pub fn format_logisim(&self, bits_per_chunk: usize) -> String

source

pub fn format_annotated( &self, fileserver: &dyn FileServer, base: usize, digits_per_group: usize ) -> String

source

pub fn format_tcgame( &self, fileserver: &dyn FileServer, base: usize, digits_per_group: usize ) -> String

source

pub fn format_addrspan(&self, fileserver: &dyn FileServer) -> String

Trait Implementations§

source§

impl Debug for BitVec

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl LowerHex for BitVec

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for BitVec

§

impl RefUnwindSafe for BitVec

§

impl Send for BitVec

§

impl Sync for BitVec

§

impl Unpin for BitVec

§

impl UnwindSafe for BitVec

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.