pub struct Report {
pub color: Field<ColorDepth>,
pub unicode: Field<bool>,
pub hyperlinks: Field<bool>,
pub graphics: Field<Graphics>,
pub sixel: Field<bool>,
pub width: Field<usize>,
pub height: Field<usize>,
pub interactive: Field<bool>,
pub animation: Field<bool>,
pub terminal: Option<String>,
pub ci: Option<String>,
pub warnings: Vec<String>,
}Expand description
A detection result. Every field records its provenance.
Fields§
§color: Field<ColorDepth>§unicode: Field<bool>§hyperlinks: Field<bool>§graphics: Field<Graphics>§sixel: Field<bool>§width: Field<usize>§height: Field<usize>§interactive: Field<bool>§animation: Field<bool>§terminal: Option<String>The identified terminal ("iTerm.app", "Windows Terminal"…), if any.
ci: Option<String>The identified CI provider, if any.
warnings: Vec<String>Override values that could not be parsed.
Implementations§
Source§impl Report
impl Report
Sourcepub fn apply(&mut self, o: &Overrides)
pub fn apply(&mut self, o: &Overrides)
Apply caller overrides with Origin::Override.
Sourcepub fn to_target_capabilities(&self) -> TargetCapabilities
pub fn to_target_capabilities(&self) -> TargetCapabilities
The core capabilities this report describes, for a
RenderTarget. Sixel is Confirmed only
when the user said so (an override or a RICH_* variable).
Sourcepub fn observations(&self) -> TargetObservations
pub fn observations(&self) -> TargetObservations
The observations resolve_capabilities
takes, so the older API can be fed from this one.
Sourcepub fn to_detected(&self) -> DetectedCapabilities
pub fn to_detected(&self) -> DetectedCapabilities
This report in the older DetectedCapabilities shape.
Trait Implementations§
impl Eq for Report
Source§impl FidelitySource for Report
impl FidelitySource for Report
fn facts(&self) -> FidelityFacts
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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
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
Compare self to
key and return true if they are equal.