pub struct OptionCapabilityProfile {
pub dom: bool,
pub canvas: bool,
pub webgl: bool,
pub webgpu: bool,
pub true_color: bool,
pub max_scrollback_lines: u32,
}Expand description
What the active rendering engine / host advertises as supported. A schema-valid option can still be gated against this profile.
Fields§
§dom: boolWhether the DOM renderer is available (effectively always true).
canvas: boolWhether the 2D canvas renderer is available.
webgl: boolWhether the WebGL renderer is available.
webgpu: boolWhether the WebGPU renderer is available.
true_color: boolWhether 24-bit colour is supported (informational; theme colours stay host-downgraded rather than gated).
max_scrollback_lines: u32Maximum scrollback the host will retain in memory.
Implementations§
Source§impl OptionCapabilityProfile
impl OptionCapabilityProfile
Sourcepub const fn minimal() -> Self
pub const fn minimal() -> Self
A conservative default profile: DOM + Canvas only, modest scrollback.
Sourcepub const fn supports_renderer(&self, renderer: RendererType) -> bool
pub const fn supports_renderer(&self, renderer: RendererType) -> bool
Whether the requested renderer backend is available.
Trait Implementations§
Source§impl Clone for OptionCapabilityProfile
impl Clone for OptionCapabilityProfile
Source§fn clone(&self) -> OptionCapabilityProfile
fn clone(&self) -> OptionCapabilityProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptionCapabilityProfile
Source§impl Debug for OptionCapabilityProfile
impl Debug for OptionCapabilityProfile
Source§impl Default for OptionCapabilityProfile
impl Default for OptionCapabilityProfile
impl Eq for OptionCapabilityProfile
Source§impl PartialEq for OptionCapabilityProfile
impl PartialEq for OptionCapabilityProfile
Source§fn eq(&self, other: &OptionCapabilityProfile) -> bool
fn eq(&self, other: &OptionCapabilityProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionCapabilityProfile
Auto Trait Implementations§
impl Freeze for OptionCapabilityProfile
impl RefUnwindSafe for OptionCapabilityProfile
impl Send for OptionCapabilityProfile
impl Sync for OptionCapabilityProfile
impl Unpin for OptionCapabilityProfile
impl UnsafeUnpin for OptionCapabilityProfile
impl UnwindSafe for OptionCapabilityProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.