openpine_vm/visuals/
extend.rs

1use openpine_macros::Enum;
2use serde::{Deserialize, Serialize};
3
4/// Extend mode for line-like visuals.
5#[derive(Enum, Debug, Clone, Copy, Default, PartialEq, Eq, Serialize, Deserialize)]
6#[openpine(rename_all = "snake")]
7pub enum Extend {
8    /// Do not extend.
9    #[default]
10    None,
11    /// Extend to the left.
12    Left,
13    /// Extend to the right.
14    Right,
15    /// Extend to both sides.
16    Both,
17}