Struct binaryninja::types::EnumerationBuilder
source · pub struct EnumerationBuilder { /* private fields */ }
Implementations§
source§impl EnumerationBuilder
impl EnumerationBuilder
pub fn new() -> Self
pub fn finalize(&self) -> Ref<Enumeration>
pub fn append<S: BnStrCompatible>(&self, name: S) -> &Self
pub fn insert<S: BnStrCompatible>(&self, name: S, value: u64) -> &Self
pub fn replace<S: BnStrCompatible>( &self, id: usize, name: S, value: u64 ) -> &Self
pub fn remove(&self, id: usize) -> &Self
pub fn members(&self) -> Vec<EnumerationMember>
Trait Implementations§
source§impl Default for EnumerationBuilder
impl Default for EnumerationBuilder
source§impl Drop for EnumerationBuilder
impl Drop for EnumerationBuilder
source§impl From<&Enumeration> for EnumerationBuilder
impl From<&Enumeration> for EnumerationBuilder
source§fn from(enumeration: &Enumeration) -> Self
fn from(enumeration: &Enumeration) -> Self
Converts to this type from the input type.
source§impl Hash for EnumerationBuilder
impl Hash for EnumerationBuilder
source§impl PartialEq for EnumerationBuilder
impl PartialEq for EnumerationBuilder
source§fn eq(&self, other: &EnumerationBuilder) -> bool
fn eq(&self, other: &EnumerationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EnumerationBuilder
impl StructuralPartialEq for EnumerationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for EnumerationBuilder
impl !Send for EnumerationBuilder
impl !Sync for EnumerationBuilder
impl Unpin for EnumerationBuilder
impl UnwindSafe for EnumerationBuilder
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