pub struct CoreTypePrinter { /* private fields */ }
Implementations§
source§impl CoreTypePrinter
impl CoreTypePrinter
pub fn printers() -> Array<CoreTypePrinter>
pub fn printer_by_name<S: BnStrCompatible>(name: S) -> Option<CoreTypePrinter>
pub fn name(&self) -> BnString
pub fn get_type_tokens<T: Into<QualifiedName>>( &self, type_: &Type, platform: &Platform, name: T, base_confidence: u8, escaping: TokenEscapingType, ) -> Option<Array<InstructionTextToken>>
pub fn get_type_tokens_before_name( &self, type_: &Type, platform: &Platform, base_confidence: u8, parent_type: &Type, escaping: TokenEscapingType, ) -> Option<Array<InstructionTextToken>>
pub fn get_type_tokens_after_name( &self, type_: &Type, platform: &Platform, base_confidence: u8, parent_type: &Type, escaping: TokenEscapingType, ) -> Option<Array<InstructionTextToken>>
pub fn get_type_string<T: Into<QualifiedName>>( &self, type_: &Type, platform: &Platform, name: T, escaping: TokenEscapingType, ) -> Option<BnString>
pub fn get_type_string_before_name( &self, type_: &Type, platform: &Platform, escaping: BNTokenEscapingType, ) -> Option<BnString>
pub fn get_type_string_after_name( &self, type_: &Type, platform: &Platform, escaping: TokenEscapingType, ) -> Option<BnString>
pub fn get_type_lines<T: Into<QualifiedName>>( &self, type_: &Type, types: &TypeContainer, name: T, padding_cols: isize, collapsed: bool, escaping: TokenEscapingType, ) -> Option<Array<TypeDefinitionLine>>
sourcepub fn default_print_all_types<T, I>(
&self,
types: T,
data: &BinaryView,
padding_cols: isize,
escaping: TokenEscapingType,
) -> Option<BnString>
pub fn default_print_all_types<T, I>( &self, types: T, data: &BinaryView, padding_cols: isize, escaping: TokenEscapingType, ) -> Option<BnString>
Print all types to a single big string, including headers, sections, etc
types
- All types to printdata
- Binary View in which all the types are definedpadding_cols
- Maximum number of bytes represented by each padding lineescaping
- Style of escaping literals which may not be parsable
pub fn print_all_types<T, I>( &self, types: T, data: &BinaryView, padding_cols: isize, escaping: TokenEscapingType, ) -> Option<BnString>
Trait Implementations§
source§impl CoreArrayProvider for CoreTypePrinter
impl CoreArrayProvider for CoreTypePrinter
Auto Trait Implementations§
impl Freeze for CoreTypePrinter
impl RefUnwindSafe for CoreTypePrinter
impl !Send for CoreTypePrinter
impl !Sync for CoreTypePrinter
impl Unpin for CoreTypePrinter
impl UnwindSafe for CoreTypePrinter
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