Some
Bases: OptionType[T]
flowchart TD
pyochain.rs.Some[Some]
pyochain.rs.OptionType[OptionType]
pyochain.rs.Pipe[Pipe]
pyochain.rs.OptionType --> pyochain.rs.Some
pyochain.rs.Pipe --> pyochain.rs.OptionType
click pyochain.rs.Some href "" "pyochain.rs.Some"
click pyochain.rs.OptionType href "" "pyochain.rs.OptionType"
click pyochain.rs.Pipe href "" "pyochain.rs.Pipe"
Option variant representing the presence of a value.
For more documentation, see the Option[T] class.
Attributes:
| Name | Type | Description |
|---|---|---|
value |
T
|
The contained value. |
Example
>>> from pyochain import Some
>>> Some(42)
Some(42)