diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/long_mode/display.rs | 2 | ||||
-rw-r--r-- | src/long_mode/mod.rs | 2 | ||||
-rw-r--r-- | src/protected_mode/display.rs | 2 | ||||
-rw-r--r-- | src/protected_mode/mod.rs | 2 | ||||
-rw-r--r-- | src/real_mode/display.rs | 2 | ||||
-rw-r--r-- | src/real_mode/mod.rs | 2 |
6 files changed, 9 insertions, 3 deletions
diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs index 181217c..56c4ebd 100644 --- a/src/long_mode/display.rs +++ b/src/long_mode/display.rs @@ -3272,6 +3272,8 @@ pub enum DisplayStyle { // ATT, } +/// Implementation of [`Display`](fmt::Display) that renders instructions using a specified display +/// style. pub struct InstructionDisplayer<'instr> { pub(crate) instr: &'instr Instruction, pub(crate) style: DisplayStyle, diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index 1499f98..3d6d977 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -7,7 +7,7 @@ pub mod uarch; pub use crate::MemoryAccessSize; #[cfg(feature = "fmt")] -pub use self::display::DisplayStyle; +pub use self::display::{DisplayStyle, InstructionDisplayer}; use core::cmp::PartialEq; use core::hint::unreachable_unchecked; diff --git a/src/protected_mode/display.rs b/src/protected_mode/display.rs index dac3684..0a8f775 100644 --- a/src/protected_mode/display.rs +++ b/src/protected_mode/display.rs @@ -3285,6 +3285,8 @@ pub enum DisplayStyle { // ATT, } +/// Implementation of [`Display`](fmt::Display) that renders instructions using a specified display +/// style. pub struct InstructionDisplayer<'instr> { pub(crate) instr: &'instr Instruction, pub(crate) style: DisplayStyle, diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs index 5ad4c44..fef1807 100644 --- a/src/protected_mode/mod.rs +++ b/src/protected_mode/mod.rs @@ -7,7 +7,7 @@ pub mod uarch; pub use crate::MemoryAccessSize; #[cfg(feature = "fmt")] -pub use self::display::DisplayStyle; +pub use self::display::{DisplayStyle, InstructionDisplayer}; use core::cmp::PartialEq; use core::hint::unreachable_unchecked; diff --git a/src/real_mode/display.rs b/src/real_mode/display.rs index 1065255..d82e54e 100644 --- a/src/real_mode/display.rs +++ b/src/real_mode/display.rs @@ -3285,6 +3285,8 @@ pub enum DisplayStyle { // ATT, } +/// Implementation of [`Display`](fmt::Display) that renders instructions using a specified display +/// style. pub struct InstructionDisplayer<'instr> { pub(crate) instr: &'instr Instruction, pub(crate) style: DisplayStyle, diff --git a/src/real_mode/mod.rs b/src/real_mode/mod.rs index 6eefdad..45dd7a3 100644 --- a/src/real_mode/mod.rs +++ b/src/real_mode/mod.rs @@ -7,7 +7,7 @@ pub mod uarch; pub use crate::MemoryAccessSize; #[cfg(feature = "fmt")] -pub use self::display::DisplayStyle; +pub use self::display::{DisplayStyle, InstructionDisplayer}; use core::cmp::PartialEq; use core::hint::unreachable_unchecked; |