pub enum BcfVersion {
V2_0,
V2_1,
V3_0,
}Expand description
A BCF-XML container version.
Variants§
V2_0
2.0 — comment status in child elements; a back-reference Topic
element is nested inside each comment.
V2_1
2.1 — status moves onto a Topic attribute; the nested back-reference
is dropped.
V3_0
3.0.
Implementations§
Source§impl BcfVersion
impl BcfVersion
Sourcepub fn nests_topic_in_comment(self) -> bool
pub fn nests_topic_in_comment(self) -> bool
Whether documents of this version nest a back-reference Topic element
inside each comment.
A reader that does not expect this will mistake the back-reference for a second topic declaration.
Trait Implementations§
Source§impl Clone for BcfVersion
impl Clone for BcfVersion
Source§fn clone(&self) -> BcfVersion
fn clone(&self) -> BcfVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BcfVersion
Source§impl Debug for BcfVersion
impl Debug for BcfVersion
impl Eq for BcfVersion
Source§impl Hash for BcfVersion
impl Hash for BcfVersion
Source§impl Ord for BcfVersion
impl Ord for BcfVersion
Source§fn cmp(&self, other: &BcfVersion) -> Ordering
fn cmp(&self, other: &BcfVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BcfVersion
impl PartialEq for BcfVersion
Source§impl PartialOrd for BcfVersion
impl PartialOrd for BcfVersion
impl StructuralPartialEq for BcfVersion
Auto Trait Implementations§
impl Freeze for BcfVersion
impl RefUnwindSafe for BcfVersion
impl Send for BcfVersion
impl Sync for BcfVersion
impl Unpin for BcfVersion
impl UnsafeUnpin for BcfVersion
impl UnwindSafe for BcfVersion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more