Skip to main content

BoxOrStaticString

Type Alias BoxOrStaticString 

Source
pub type BoxOrStaticString = BoxOrStatic<AzString>;
Expand description

Type alias: BoxOrStatic<AzString> — used by NodeType::Text and NodeType::Icon.

Aliased Type§

#[repr(C, u8)]
pub enum BoxOrStaticString { Boxed(*mut AzString), Static(*const AzString), }

Variants§

§

Boxed(*mut AzString)

Heap-allocated (parsed at runtime). Owned — freed on Drop.

§

Static(*const AzString)

Compile-time constant (e.g. from const CSS defaults). Not freed.