Add docs.
This commit is contained in:
parent
855ddd28a6
commit
5f2262214d
@ -362,6 +362,8 @@ pub enum Expr {
|
||||
///
|
||||
/// Used to hold complex constants such as [`Array`][crate::Array] or [`Map`][crate::Map] for quick cloning.
|
||||
/// Primitive data types should use the appropriate variants to avoid an allocation.
|
||||
///
|
||||
/// The [`Dynamic`] value is boxed in order to avoid bloating the size of [`Expr`].
|
||||
DynamicConstant(Box<Dynamic>, Position),
|
||||
/// Boolean constant.
|
||||
BoolConstant(bool, Position),
|
||||
|
@ -186,6 +186,9 @@ pub enum Union {
|
||||
TimeStamp(Box<Instant>, Tag, AccessMode),
|
||||
|
||||
/// Any type as a trait object.
|
||||
///
|
||||
/// An extra level of redirection is used in order to avoid bloating the size of [`Dynamic`]
|
||||
/// because `Box<dyn Variant>` is a fat pointer.
|
||||
Variant(Box<Box<dyn Variant>>, Tag, AccessMode),
|
||||
|
||||
/// A _shared_ value of any type.
|
||||
|
Loading…
Reference in New Issue
Block a user