pub struct BlitterSupport {
pub half: bool,
pub quad: bool,
pub sextant: bool,
}crossterm only.Expand description
Runtime terminal capability probe (issue #264): read-only Capabilities
snapshot plus the Blitter ladder it drives. Diagnostics-only — image
rendering routes through the ladder automatically.
Image-rendering primitives the terminal can drive, used to build the
automatic blitter ladder. Each flag is conservative: when the runtime probe
returns no answer the defaults assume only the universally available
primitives (half-block + quadrants).
App code is not required to inspect this; it exists for diagnostics and
to feed Capabilities::best_blitter.
§Example
let blitters = ui.capabilities().blitters;
// Half-block is available on any ANSI terminal.
assert!(blitters.half);Fields§
§half: bool▀ upper-half block — available on any ANSI terminal.
quad: bool▖▗▘▝ quadrant blocks — available on any Unicode-capable terminal.
sextant: bool🬀..🬻 sextants (Unicode 13+) — off by default until a renderer
confirms support. This issue wires the capability slot; a sextant
renderer is a separate feature.
Trait Implementations§
Source§impl Clone for BlitterSupport
impl Clone for BlitterSupport
Source§fn clone(&self) -> BlitterSupport
fn clone(&self) -> BlitterSupport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BlitterSupport
impl Debug for BlitterSupport
Source§impl Default for BlitterSupport
impl Default for BlitterSupport
Source§impl PartialEq for BlitterSupport
impl PartialEq for BlitterSupport
Source§fn eq(&self, other: &BlitterSupport) -> bool
fn eq(&self, other: &BlitterSupport) -> bool
self and other values to be equal, and is used by ==.impl Copy for BlitterSupport
impl Eq for BlitterSupport
impl StructuralPartialEq for BlitterSupport
Auto Trait Implementations§
impl Freeze for BlitterSupport
impl RefUnwindSafe for BlitterSupport
impl Send for BlitterSupport
impl Sync for BlitterSupport
impl Unpin for BlitterSupport
impl UnsafeUnpin for BlitterSupport
impl UnwindSafe for BlitterSupport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.