move containers to own mod
This commit is contained in:
parent
e7cad5b5a3
commit
cf6e6385ec
|
@ -82,7 +82,6 @@ pub unsafe extern "C" fn sp_cmd_cp437_grid_get_origin(
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// Sets the origin field of the [Cp437GridCommand].
|
||||
///
|
||||
/// Rust equivalent: `cp437_command.origin = Origin::new(origin_x, origin_y)`
|
||||
|
|
|
@ -2,9 +2,9 @@ use crate::{
|
|||
heap_clone, heap_drop, heap_move_nonnull, heap_move_ok, heap_remove,
|
||||
};
|
||||
use servicepoint::{
|
||||
BitVecCommand, BitmapCommand, BrightnessGridCommand,
|
||||
CharGridCommand, ClearCommand, Cp437GridCommand, FadeOutCommand,
|
||||
GlobalBrightnessCommand, HardResetCommand, Packet, TypedCommand,
|
||||
BitVecCommand, BitmapCommand, BrightnessGridCommand, CharGridCommand,
|
||||
ClearCommand, Cp437GridCommand, FadeOutCommand, GlobalBrightnessCommand,
|
||||
HardResetCommand, Packet, TypedCommand,
|
||||
};
|
||||
use std::ptr::{null_mut, NonNull};
|
||||
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
use crate::{byte_slice::ByteSlice, heap_clone, heap_drop, heap_move_nonnull, heap_move_ok, heap_move_some, heap_remove};
|
||||
use crate::{
|
||||
containers::ByteSlice, heap_clone, heap_drop, heap_move_nonnull,
|
||||
heap_move_ok, heap_move_some, heap_remove,
|
||||
};
|
||||
use servicepoint::{
|
||||
Bitmap, BitmapCommand, CompressionCode, DataRef, Grid, Origin, Packet, DisplayBitVec
|
||||
Bitmap, BitmapCommand, CompressionCode, DataRef, DisplayBitVec, Grid,
|
||||
Origin, Packet,
|
||||
};
|
||||
use std::ptr::NonNull;
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
use crate::{
|
||||
byte_slice::ByteSlice, heap_clone, heap_drop, heap_move_nonnull,
|
||||
containers::ByteSlice, heap_clone, heap_drop, heap_move_nonnull,
|
||||
heap_move_ok, heap_remove,
|
||||
};
|
||||
use servicepoint::{
|
|
@ -1,5 +1,5 @@
|
|||
use crate::{
|
||||
byte_slice::ByteSlice, heap_clone, heap_drop, heap_move_nonnull,
|
||||
containers::ByteSlice, heap_clone, heap_drop, heap_move_nonnull,
|
||||
heap_move_ok, heap_move_some, heap_remove,
|
||||
};
|
||||
use servicepoint::{
|
|
@ -1,5 +1,5 @@
|
|||
use crate::{
|
||||
byte_slice::ByteSlice, heap_clone, heap_drop, heap_move_nonnull,
|
||||
containers::ByteSlice, heap_clone, heap_drop, heap_move_nonnull,
|
||||
heap_move_ok, heap_remove,
|
||||
};
|
||||
use servicepoint::{CharGrid, CharGridCommand, Grid, Origin, Packet};
|
|
@ -1,5 +1,5 @@
|
|||
use crate::{
|
||||
byte_slice::ByteSlice, heap_clone, heap_drop, heap_move_nonnull,
|
||||
containers::ByteSlice, heap_clone, heap_drop, heap_move_nonnull,
|
||||
heap_move_ok, heap_move_some, heap_remove,
|
||||
};
|
||||
use servicepoint::{
|
13
src/containers/mod.rs
Normal file
13
src/containers/mod.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
mod bitmap;
|
||||
mod bitvec;
|
||||
mod brightness_grid;
|
||||
mod byte_slice;
|
||||
mod char_grid;
|
||||
mod cp437_grid;
|
||||
|
||||
pub use bitmap::*;
|
||||
pub use bitvec::*;
|
||||
pub use brightness_grid::*;
|
||||
pub use byte_slice::*;
|
||||
pub use char_grid::*;
|
||||
pub use cp437_grid::*;
|
|
@ -27,13 +27,8 @@
|
|||
|
||||
use std::ptr::NonNull;
|
||||
|
||||
pub mod bitmap;
|
||||
pub mod bitvec;
|
||||
pub mod brightness_grid;
|
||||
pub mod byte_slice;
|
||||
pub mod char_grid;
|
||||
pub mod commands;
|
||||
pub mod cp437_grid;
|
||||
pub mod containers;
|
||||
pub mod packet;
|
||||
pub mod udp;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::{
|
||||
byte_slice::ByteSlice, heap_clone, heap_drop, heap_move_nonnull,
|
||||
containers::ByteSlice, heap_clone, heap_drop, heap_move_nonnull,
|
||||
heap_move_ok,
|
||||
};
|
||||
use servicepoint::{CommandCode, Header, Packet};
|
||||
|
|
Loading…
Reference in a new issue