add: display for Message
This commit is contained in:
parent
7125a7572d
commit
d59e19aee5
|
@ -10,3 +10,8 @@ pub struct Message {
|
|||
pub data_message_max: usize,
|
||||
pub data: Box<[char]>,
|
||||
}
|
||||
impl std::fmt::Display for Message {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "({}, {}, {}, {}, {}, {}, {:#?})", self.message_type, self.instruction, self.data_size, self.argument_count, self.data_message_number, self.data_message_max, self.data)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user