Enum taplo::dom::node::IntegerValue
source · pub enum IntegerValue {
Negative(i64),
Positive(u64),
}
Variants§
Implementations§
source§impl IntegerValue
impl IntegerValue
sourcepub fn is_negative(&self) -> bool
pub fn is_negative(&self) -> bool
Returns true
if the integer value is Negative
.
sourcepub fn is_positive(&self) -> bool
pub fn is_positive(&self) -> bool
Returns true
if the integer value is Positive
.
pub fn as_negative(&self) -> Option<i64>
pub fn as_positive(&self) -> Option<u64>
Trait Implementations§
source§impl Clone for IntegerValue
impl Clone for IntegerValue
source§fn clone(&self) -> IntegerValue
fn clone(&self) -> IntegerValue
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 IntegerValue
impl Debug for IntegerValue
source§impl Display for IntegerValue
impl Display for IntegerValue
source§impl PartialEq for IntegerValue
impl PartialEq for IntegerValue
source§fn eq(&self, other: &IntegerValue) -> bool
fn eq(&self, other: &IntegerValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IntegerValue
impl Eq for IntegerValue
impl StructuralPartialEq for IntegerValue
Auto Trait Implementations§
impl RefUnwindSafe for IntegerValue
impl Send for IntegerValue
impl Sync for IntegerValue
impl Unpin for IntegerValue
impl UnwindSafe for IntegerValue
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