pub enum StandardVariable {
Ordinary(Variable),
Number(NumberVariable),
}
Expand description
Contrary to the CSL-M spec’s declaration that number variables in a regular <text variable>
“should fail validation”, that is perfectly valid, because “number variables are a subset of the
standard variables”:
Spec
Variants§
Ordinary(Variable)
Number(NumberVariable)
Trait Implementations§
Source§impl Clone for StandardVariable
impl Clone for StandardVariable
Source§fn clone(&self) -> StandardVariable
fn clone(&self) -> StandardVariable
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StandardVariable
impl Debug for StandardVariable
Source§impl GetAttribute for StandardVariable
impl GetAttribute for StandardVariable
Source§impl PartialEq for StandardVariable
impl PartialEq for StandardVariable
impl Copy for StandardVariable
impl Eq for StandardVariable
impl StructuralPartialEq for StandardVariable
Auto Trait Implementations§
impl Freeze for StandardVariable
impl RefUnwindSafe for StandardVariable
impl Send for StandardVariable
impl Sync for StandardVariable
impl Unpin for StandardVariable
impl UnwindSafe for StandardVariable
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