/// Represents the alignment of a field in a fixed length representation
#[derive(Clone, Copy, Debug, Eq, PartialEq)]pubenumAlignment{/// Field is aligned left
Left,/// Field is aligned right
Right,/// Field takes the full width
////// When reading strings, whitespace will not be stripped. This can be
/// useful to preserve tabular data. Numerical fields will ignore leading
/// and trailing whitespace when parsing a value from text.
Full,// TODO: handle incorrect length writes (with strict mode)
}/// Represents how a field should be encoded in a fixed width column representation
#[derive(Clone, Copy, Debug)]pubstructFieldDescription{/// How many characters to skip between the prior field and this one
////// Note, currently limited to 256 for writes
pubskip:usize,
/// The number of characters available to hold this field
publen:usize,
/// How data in this field is aligned
pubalignment: Alignment,
/// Whether strict mode is enabled for this field.
pubstrict:bool,
}