restructure api

This commit is contained in:
Vinzenz Schroeter 2025-01-12 02:06:02 +01:00
parent efaa52faa1
commit 8320ee2d80
32 changed files with 561 additions and 544 deletions

View file

@ -1,6 +1,6 @@
use crate::char_grid::CharGrid;
use servicepoint::{DataRef, Grid};
use std::sync::{Arc, RwLock};
use crate::char_grid::CharGrid;
#[derive(uniffi::Object)]
pub struct Cp437Grid {
@ -72,6 +72,8 @@ impl Cp437Grid {
}
pub fn to_utf8(&self) -> Arc<CharGrid> {
CharGrid::internal_new(servicepoint::CharGrid::from(&*self.actual.read().unwrap()))
CharGrid::internal_new(servicepoint::CharGrid::from(
&*self.actual.read().unwrap(),
))
}
}