#[repr(u8)]pub enum Vr {
Show 34 variants
Ae = 0,
As = 1,
At = 2,
Cs = 3,
Da = 4,
Ds = 5,
Dt = 6,
Fd = 7,
Fl = 8,
Is = 9,
Lo = 10,
Lt = 11,
Ob = 12,
Od = 13,
Of = 14,
Ol = 15,
Ov = 16,
Ow = 17,
Pn = 18,
Sh = 19,
Sl = 20,
Sq = 21,
Ss = 22,
St = 23,
Sv = 24,
Tm = 25,
Uc = 26,
Ui = 27,
Ul = 28,
Un = 29,
Ur = 30,
Us = 31,
Ut = 32,
Uv = 33,
}Expand description
DICOM Value Representation: the 34 VRs defined by PS3.5.
Variants§
Ae = 0
AE — Application Entity
As = 1
AS — Age String
At = 2
AT — Attribute Tag
Cs = 3
CS — Code String
Da = 4
DA — Date
Ds = 5
DS — Decimal String
Dt = 6
DT — Date Time
Fd = 7
FD — Floating Point Double (64-bit float)
Fl = 8
FL — Floating Point Single (32-bit float)
Is = 9
IS — Integer String
Lo = 10
LO — Long String
Lt = 11
LT — Long Text
Ob = 12
OB — Other Byte
Od = 13
OD — Other Double (64-bit float)
Of = 14
OF — Other Float (32-bit float)
Ol = 15
OL — Other Long (32-bit integer)
Ov = 16
OV — Other 64-bit Very Long (64-bit integer)
Ow = 17
OW — Other Word (16-bit word)
Pn = 18
PN — Person Name
Sh = 19
SH — Short String
Sl = 20
SL — Signed Long (32-bit signed integer)
Sq = 21
SQ — Sequence of Items
Ss = 22
SS — Signed Short (16-bit signed integer)
St = 23
ST — Short Text
Sv = 24
SV — Signed 64-bit Very Long (64-bit signed integer)
Tm = 25
TM — Time
Uc = 26
UC — Unlimited Characters
Ui = 27
UI — Unique Identifier
Ul = 28
UL — Unsigned Long (32-bit unsigned integer)
Un = 29
UN — Unknown
Ur = 30
UR — Universal Resource Identifier
Us = 31
US — Unsigned Short (16-bit unsigned integer)
Ut = 32
UT — Unlimited Text
Uv = 33
UV — Unsigned 64-bit Very Long (64-bit unsigned integer)
Implementations§
Source§impl Vr
impl Vr
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Two-character spelling used by the standard, e.g. "OB".
Sourcepub const fn is_string(self) -> bool
pub const fn is_string(self) -> bool
Whether this VR is textual (value stored as text, possibly multi-valued).
Sourcepub const fn uses_specific_character_set(self) -> bool
pub const fn uses_specific_character_set(self) -> bool
Whether its text is governed by Specific Character Set (PS3.3 C.12.1.1.2).
Sourcepub const fn uses_long_length(self) -> bool
pub const fn uses_long_length(self) -> bool
Whether explicit-VR encoding uses the “2 reserved bytes + 4-byte length” form (PS3.5 6.2).
Sourcepub const fn splits_on_backslash(self) -> bool
pub const fn splits_on_backslash(self) -> bool
Whether multiple values are separated by backslashes. In LT, ST, UT and UR a
backslash is an ordinary character (PS3.5 6.2).
Sourcepub const fn padding(self) -> u8
pub const fn padding(self) -> u8
Pad byte used to reach even length: NUL for UI, a space for other textual VRs, NUL for
binary VRs.
Sourcepub const fn is_sequence(self) -> bool
pub const fn is_sequence(self) -> bool
Whether this VR is a sequence.