-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert-M-Lucas
committed
Jun 3, 2024
1 parent
c8c1a65
commit 2fc5cc1
Showing
14 changed files
with
189 additions
and
119 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
use unique_type_id::UniqueTypeId; | ||
use crate::root::shared::types::Type; | ||
use crate::root::shared::types::{ByteSize, Type, TypeID}; | ||
|
||
#[derive(UniqueTypeId)] | ||
#[UniqueTypeIdType = "u16"] | ||
pub struct IntType {} | ||
|
||
impl Type for IntType { | ||
fn id(&self) -> isize { | ||
-(IntType::unique_type_id().0 as isize) - 1 | ||
fn id(&self) -> TypeID { | ||
TypeID(-(IntType::unique_type_id().0 as isize) - 1) | ||
} | ||
|
||
fn size(&self) -> usize { | ||
8 | ||
fn size(&self) -> ByteSize { | ||
ByteSize(8) | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.