export some builtin traits,
brightness conversion fails for invalid values, macros for wrapping attrs
This commit is contained in:
parent
bffc905261
commit
f4c7519658
21 changed files with 210 additions and 133 deletions
|
@ -1,4 +1,7 @@
|
|||
use crate::macros::*;
|
||||
use crate::{
|
||||
containers::{wrap_get_set_fill_2d, wrap_width_height},
|
||||
macros::wrap_object,
|
||||
};
|
||||
use servicepoint::{Brightness, Grid};
|
||||
use std::{ops::Deref, sync::Arc};
|
||||
|
||||
|
@ -28,12 +31,6 @@ impl BrightnessGrid {
|
|||
)
|
||||
}
|
||||
|
||||
pub fn equals(&self, other: &BrightnessGrid) -> bool {
|
||||
let a = self.read();
|
||||
let b = other.read();
|
||||
*a == *b
|
||||
}
|
||||
|
||||
pub fn copy_raw(&self) -> Vec<u8> {
|
||||
self.read().deref().into()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue