Skip to content

Commit

Permalink
Move trait impls
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Jul 7, 2024
1 parent ba1b247 commit 3a5cb73
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/formats/mod.rs → src/core_traits.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
pub mod abgr;
pub mod argb;
pub mod bgr;
pub mod bgra;
pub mod gray;
pub mod gray_a;
#[cfg(feature = "legacy")]
pub mod gray_alpha;
pub mod grb;
pub mod rgb;
pub mod rgba;
pub mod rgbw;

use crate::{Abgr, Argb, Bgr, Bgra, Grb, Gray, GrayA, Rgb, Rgba, Rgbw};
use core::array::TryFromSliceError;
Expand Down
16 changes: 15 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,21 @@
#[cfg(all(test, feature = "legacy"))]
#[macro_use] extern crate std;

mod formats;
mod formats {
pub mod abgr;
pub mod argb;
pub mod bgr;
pub mod bgra;
pub mod gray;
pub mod gray_a;
#[cfg(feature = "legacy")]
pub mod gray_alpha;
pub mod grb;
pub mod rgb;
pub mod rgba;
pub mod rgbw;
}
mod core_traits;
mod from;
mod tuples;
mod pixel_traits {
Expand Down

0 comments on commit 3a5cb73

Please sign in to comment.