pub enum Sign {
Unsigned,
Signed,
}Expand description
Whether a register’s bits are interpreted as a signed or unsigned integer.
GenICam’s default is Unsigned; <Sign>Signed</Sign> opts in. Getting
this wrong is invisible until a register’s top bit is set — a
GevCurrentIPAddress of 192.168.1.160 then reads as a large negative
number, and a mask comparison such as (CTRL | 0xFDFFFFFF) = 0xFFFFFFFF
can never be true.
Variants§
Unsigned
<Sign>Unsigned</Sign>, and the default when <Sign> is absent.
Signed
<Sign>Signed</Sign>: the payload is two’s complement.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sign
impl<'de> Deserialize<'de> for Sign
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Sign
impl Eq for Sign
impl StructuralPartialEq for Sign
Auto Trait Implementations§
impl Freeze for Sign
impl RefUnwindSafe for Sign
impl Send for Sign
impl Sync for Sign
impl Unpin for Sign
impl UnsafeUnpin for Sign
impl UnwindSafe for Sign
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.