Skip to main content

Crate display_types

Crate display_types 

Source
Expand description

Shared display capability types for display connection negotiation.

Provides the DisplayCapabilities struct and all supporting types produced by display data parsers (e.g. EDID, DisplayID) and consumed by negotiation engines.

§Feature flags

  • std (default) — enables std-dependent types; implies alloc.
  • alloc — enables heap-allocated types (Vec, Arc, String) without full std.
  • serde — derives Serialize/Deserialize for all public types.

With neither std nor alloc the crate compiles in bare no_std mode, exposing only the scalar types (enums and copy structs).

Re-exports§

pub use color::AnalogColorType;
pub use color::Chromaticity;
pub use color::ChromaticityPoint;
pub use color::ColorBitDepth;
pub use color::ColorManagementData;
pub use color::DcmChannel;
pub use color::DigitalColorEncoding;
pub use color::DisplayGamma;
pub use color::WhitePoint;
pub use input::AnalogSyncLevel;
pub use input::VideoInputFlags;
pub use input::VideoInterface;
pub use features::DisplayFeatureFlags;
pub use manufacture::ManufactureDate;
pub use manufacture::ManufacturerId;
pub use manufacture::MonitorString;
pub use screen::ScreenSize;
pub use timing::CvtAspectRatio;
pub use timing::CvtAspectRatios;
pub use timing::CvtScaling;
pub use timing::CvtSupportParams;
pub use timing::GtfSecondaryParams;
pub use timing::TimingFormula;
pub use panel::BacklightType;
pub use panel::DisplayIdInterface;
pub use panel::DisplayIdStereoInterface;
pub use panel::DisplayIdTiledTopology;
pub use panel::DisplayInterfaceType;
pub use panel::DisplayTechnology;
pub use panel::InterfaceContentProtection;
pub use panel::OperatingMode;
pub use panel::PhysicalOrientation;
pub use panel::PowerSequencing;
pub use panel::RotationCapability;
pub use panel::ScanDirection;
pub use panel::StereoSyncInterface;
pub use panel::StereoViewingMode;
pub use panel::SubpixelLayout;
pub use panel::TileBezelInfo;
pub use panel::TileTopologyBehavior;
pub use panel::ZeroPixelLocation;
pub use capabilities::DisplayCapabilities;
pub use capabilities::ExtensionData;
pub use capabilities::ParseWarning;
pub use capabilities::EdidVersion;
pub use capabilities::StereoMode;
pub use capabilities::SyncDefinition;
pub use capabilities::VideoMode;
pub use transfer::TransferPointEncoding;
pub use transfer::DisplayIdTransferCharacteristic;
pub use transfer::TransferCurve;

Modules§

capabilities
Consumer-facing capability types.
cea861
CEA-861 / CTA-861 extension block types. Types decoded from CEA-861 / CTA-861 extension blocks.
color
Color-related model types.
features
Display feature flags.
input
Input interface model types.
manufacture
Manufacture date model types.
panel
Panel hardware characteristic types.
prelude
Re-exports of alloc/std collection types used across the crate.
screen
Screen size and aspect ratio.
timing
Video timing formula types.
transfer
Luminance transfer characteristic types.

Structs§

Arc
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
Box
A pointer type that uniquely owns a heap allocation of type T.
String
A UTF-8–encoded, growable string.
Vec
A contiguous growable array type, written as Vec<T>, short for ‘vector’.