Converts this value into a Gordian Envelope.
This is the core method of the interface, converting the implementing type into an envelope representation. Most implementations will convert the value to a leaf envelope containing the value.
A new envelope containing the value.
A trait for types that can be encoded as a Gordian Envelope.
This interface defines the contract for converting a value into an envelope. Types implementing this interface can be used directly with envelope construction functions without explicit conversion.
There are numerous built-in implementations for common types including:
Example