crate-cli 10.7.0

A command-line tool for managing Cargo package lifecycles: version bump, workspace dependency sync, members-ordered publish and code formatting.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

/// Tracks one active YAML indentation scope mapping raw source indent to Prettier 2-space indent.
#[derive(Clone, Copy, Debug, Eq, Getter, New, PartialEq)]
pub(crate) struct YamlScope {
    /// Source indentation column of the block header or entry.
    #[get(pub(crate), type(copy))]
    pub(crate) raw_indent: usize,
    /// Normalized 2-space output indentation column.
    #[get(pub(crate), type(copy))]
    pub(crate) out_indent: usize,
    /// Whether this scope was introduced by a mapping key expecting a nested block value.
    #[get(pub(crate), type(copy))]
    pub(crate) expects_block_child: bool,
    /// Whether this scope represents a sequence `- ` item level.
    #[get(pub(crate), type(copy))]
    pub(crate) is_sequence: bool,
}