pub struct TileEncoder {
pub max_summary_bytes: usize,
pub constraint_extractor: ConstraintExtractor,
}Expand description
Lossy encoder: compresses raw content into a tile.
Fields§
§max_summary_bytes: usize§constraint_extractor: ConstraintExtractorImplementations§
Source§impl TileEncoder
impl TileEncoder
Sourcepub fn encode(&self, content: &str, salience: &SalienceMap) -> Tile
pub fn encode(&self, content: &str, salience: &SalienceMap) -> Tile
Encode content into a tile using the provided salience map.
Sourcepub fn encode_with_valence(&self, content: &str, valence: f64) -> Tile
pub fn encode_with_valence(&self, content: &str, valence: f64) -> Tile
Encode with explicit valence override.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TileEncoder
impl RefUnwindSafe for TileEncoder
impl Send for TileEncoder
impl Sync for TileEncoder
impl Unpin for TileEncoder
impl UnsafeUnpin for TileEncoder
impl UnwindSafe for TileEncoder
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