LineStr

Type Alias LineStr 

Source
pub type LineStr = Arc<str>;
Available on crate feature chrono only.
Expand description

A (thread safe) line string

We use a Arc<str> over String to communicate its immutability and fixedness. (Arc<str>/Box<str>/&str don’t carry any capacity data, only the length.)

While Box<str> is also possible, the box is not thread safe and and both types have pretty similar performance characteristics.

Aliased Type§

pub struct LineStr { /* private fields */ }