Trait iso8583_parser::StringManipulation
source · pub trait StringManipulation {
// Required methods
fn get_slice_until(&mut self, length: usize) -> String;
fn hex_to_ascii(&mut self) -> Result<String, FromHexError>;
fn process_field(&mut self, field_number: u32, length: u32, name: &str);
fn parse_ltv(&mut self) -> Result<Vec<LTV>, Box<dyn Error>>;
}Expand description
Trait for string manipulation operations.
Required Methods§
sourcefn get_slice_until(&mut self, length: usize) -> String
fn get_slice_until(&mut self, length: usize) -> String
Get a slice of the string until a specified length.
sourcefn hex_to_ascii(&mut self) -> Result<String, FromHexError>
fn hex_to_ascii(&mut self) -> Result<String, FromHexError>
Convert a hex string to ASCII.
sourcefn process_field(&mut self, field_number: u32, length: u32, name: &str)
fn process_field(&mut self, field_number: u32, length: u32, name: &str)
Process a field based on field number, length, and name.
Implementations on Foreign Types§
source§impl StringManipulation for String
impl StringManipulation for String
source§fn get_slice_until(&mut self, length: usize) -> String
fn get_slice_until(&mut self, length: usize) -> String
Get a slice of the string until a specified length.
source§fn hex_to_ascii(&mut self) -> Result<String, FromHexError>
fn hex_to_ascii(&mut self) -> Result<String, FromHexError>
Convert a hex string to ASCII.
source§fn process_field(&mut self, field_number: u32, length: u32, name: &str)
fn process_field(&mut self, field_number: u32, length: u32, name: &str)
Process a field based on field number, length, and name.