codama_nodes/generated/shared/pre_offset_strategy.rs
1use serde::{Deserialize, Serialize};
2
3/// How a pre-offset modifier interprets its offset value before serialising the wrapped type.
4#[derive(Debug, PartialEq, Eq, Clone, Copy, Serialize, Deserialize)]
5#[serde(rename_all = "camelCase")]
6pub enum PreOffsetStrategy {
7 /// Move the cursor to the absolute byte position given by the offset.
8 Absolute,
9 /// Pad with zero bytes from the current cursor up to the offset bytes ahead.
10 Padded,
11 /// Advance the cursor by the offset bytes relative to its current position.
12 Relative,
13}