diff options
author | 2025-05-30 13:29:02 +0100 | |
---|---|---|
committer | 2025-05-30 13:29:02 +0100 | |
commit | 6d1f28eb79c6c70b058fcbae5047dbd744764149 (patch) | |
tree | 0dd308a59df464d7c4156a459b56c205c9deb81f /src/declaration.rs | |
parent | 826a17e34c167b53bd63544c5825b689a3a8fca7 (diff) | |
download | peanuts-6d1f28eb79c6c70b058fcbae5047dbd744764149.tar.gz peanuts-6d1f28eb79c6c70b058fcbae5047dbd744764149.tar.bz2 peanuts-6d1f28eb79c6c70b058fcbae5047dbd744764149.zip |
doc: everything
Diffstat (limited to 'src/declaration.rs')
-rw-r--r-- | src/declaration.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declaration.rs b/src/declaration.rs index 2c0855f..ecd877a 100644 --- a/src/declaration.rs +++ b/src/declaration.rs @@ -1,9 +1,11 @@ +/// An XML declaration. pub struct Declaration { pub version_info: VersionInfo, pub encoding_decl: Option<String>, pub sd_decl: Option<bool>, } +/// An XML version. #[derive(Clone, Copy)] pub enum VersionInfo { One, @@ -11,6 +13,7 @@ pub enum VersionInfo { } impl Declaration { + /// Create an XML declaration from a version. pub fn version(version: VersionInfo) -> Self { Self { version_info: version, |