pub struct Signed<T>(pub bool, pub T);
Expand description
Wrapper around an object to store a sign (+/-) along it.
This is used to store whether a literal is negated (-) or not (+).
Tuple Fields§
§0: bool
§1: T
Implementations§
Trait Implementations§
source§impl<T: PartialEq> PartialEq<Signed<T>> for Signed<T>
impl<T: PartialEq> PartialEq<Signed<T>> for Signed<T>
impl<T: Eq> Eq for Signed<T>
impl<T> StructuralEq for Signed<T>
impl<T> StructuralPartialEq for Signed<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Signed<T>where T: RefUnwindSafe,
impl<T> Send for Signed<T>where T: Send,
impl<T> Sync for Signed<T>where T: Sync,
impl<T> Unpin for Signed<T>where T: Unpin,
impl<T> UnwindSafe for Signed<T>where T: UnwindSafe,
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