diff options
author | 2018-04-26 14:24:12 -0700 | |
---|---|---|
committer | 2018-04-26 14:24:12 -0700 | |
commit | 848ec0fae090dbc1657d02b436b8b887df519e90 (patch) | |
tree | 9d289473fde6fe1b45a376d10a16944b33ad7de9 /src/bits32/segmentation.rs | |
parent | 19843c0bcfb7a5d80720ba82524d40b3d69ace4e (diff) | |
download | rust-x86-848ec0fae090dbc1657d02b436b8b887df519e90.tar.gz rust-x86-848ec0fae090dbc1657d02b436b8b887df519e90.tar.zst rust-x86-848ec0fae090dbc1657d02b436b8b887df519e90.zip |
Rename types Descriptor{arch} to Descriptor.
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
Diffstat (limited to 'src/bits32/segmentation.rs')
-rw-r--r-- | src/bits32/segmentation.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bits32/segmentation.rs b/src/bits32/segmentation.rs index d75f4d8..dc6da52 100644 --- a/src/bits32/segmentation.rs +++ b/src/bits32/segmentation.rs @@ -8,12 +8,12 @@ use ::Ring; /// See Intel 3a, Section 3.4.5 "Segment Descriptors", and Section 3.5.2 #[derive(Copy, Clone, Debug, Default)] #[repr(C, packed)] -pub struct Descriptor32 { +pub struct Descriptor { pub lower: u32, pub upper: u32, } -impl Descriptor32 { +impl Descriptor { pub(crate) fn apply_builder_settings(&mut self, builder: &DescriptorBuilder) { builder.dpl.map(|ring| self.set_dpl(ring)); @@ -172,9 +172,9 @@ impl LdtDescriptorBuilder<u32> for DescriptorBuilder { } } -impl BuildDescriptor<Descriptor32> for DescriptorBuilder { - fn finish(&self) -> Descriptor32 { - let mut desc: Descriptor32 = Default::default(); +impl BuildDescriptor<Descriptor> for DescriptorBuilder { + fn finish(&self) -> Descriptor { + let mut desc: Descriptor = Default::default(); desc.apply_builder_settings(self); let typ = match self.typ { |