pub struct TileDecoder {
pub context_window: usize,
}Expand description
Context-dependent decoder: reconstructs content from tiles.
Fields§
§context_window: usizeImplementations§
Source§impl TileDecoder
impl TileDecoder
Sourcepub fn decode(&self, tile: &Tile, context: &str) -> Reconstruction
pub fn decode(&self, tile: &Tile, context: &str) -> Reconstruction
Decode a single tile with the given context.
The context string is used to enrich the reconstruction by matching
against the tile’s context_required fields and constraints.
Sourcepub fn decode_collective(
&self,
tiles: &[&Tile],
context: &str,
) -> Reconstruction
pub fn decode_collective( &self, tiles: &[&Tile], context: &str, ) -> Reconstruction
Decode multiple tiles collectively into a single reconstruction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TileDecoder
impl RefUnwindSafe for TileDecoder
impl Send for TileDecoder
impl Sync for TileDecoder
impl Unpin for TileDecoder
impl UnsafeUnpin for TileDecoder
impl UnwindSafe for TileDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more