diff options
author | iximeow <me@iximeow.net> | 2019-06-02 22:10:25 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-01-12 16:10:13 -0800 |
commit | 605ec39d74cb061baf5cc0641b9d9c83f103c0f7 (patch) | |
tree | d7196946bb62d79a1da5056e0cd23c82e5116a0a /src | |
parent | bf9d79066de007a79bc343270c968413d3a1d365 (diff) |
make segment check functions actually usable
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -545,27 +545,27 @@ impl Prefixes { #[inline] fn set_address_size(&mut self) { self.bits = self.bits | 0x2 } #[inline] - fn cs(&self) -> bool { self.segment == Segment::CS } + pub fn cs(&self) -> bool { self.segment == Segment::CS } #[inline] fn set_cs(&mut self) { self.segment = Segment::CS } #[inline] - fn ds(&self) -> bool { self.segment == Segment::DS } + pub fn ds(&self) -> bool { self.segment == Segment::DS } #[inline] fn set_ds(&mut self) { self.segment = Segment::DS } #[inline] - fn es(&self) -> bool { self.segment == Segment::ES } + pub fn es(&self) -> bool { self.segment == Segment::ES } #[inline] fn set_es(&mut self) { self.segment = Segment::ES } #[inline] - fn fs(&self) -> bool { self.segment == Segment::FS } + pub fn fs(&self) -> bool { self.segment == Segment::FS } #[inline] fn set_fs(&mut self) { self.segment = Segment::FS } #[inline] - fn gs(&self) -> bool { self.segment == Segment::GS } + pub fn gs(&self) -> bool { self.segment == Segment::GS } #[inline] fn set_gs(&mut self) { self.segment = Segment::GS } #[inline] - fn ss(&self) -> bool { self.segment == Segment::SS } + pub fn ss(&self) -> bool { self.segment == Segment::SS } #[inline] fn set_ss(&mut self) { self.segment = Segment::SS } #[inline] |