mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 10:34:11 +02:00
update to bitstream_reader 0.7
This commit is contained in:
parent
2f32240613
commit
b7c3baee17
12 changed files with 32 additions and 66 deletions
|
|
@ -1,8 +1,8 @@
|
|||
use bitstream_reader::{BitRead, BitSize};
|
||||
use bitstream_reader::BitRead;
|
||||
use parse_display::Display;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(BitRead, BitSize, Debug, Clone, Copy, Default, Serialize, Deserialize, Display)]
|
||||
#[derive(BitRead, Debug, Clone, Copy, Default, Serialize, Deserialize, Display)]
|
||||
#[display("({x}, {y}, {z})")]
|
||||
pub struct Vector {
|
||||
pub x: f32,
|
||||
|
|
@ -16,7 +16,7 @@ impl PartialEq for Vector {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(BitRead, BitSize, Debug, Clone, Copy, Default, Serialize, Deserialize, Display)]
|
||||
#[derive(BitRead, Debug, Clone, Copy, Default, Serialize, Deserialize, Display)]
|
||||
#[display("({x}, {y})")]
|
||||
pub struct VectorXY {
|
||||
pub x: f32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue