[−][src]Enum gf::support::bitvec::BitVecOp
Bit vector operator.
Variants
Wrapping integer addition.
Signed integer addition overflow indicator.
Unsigned integer addition overflow indicator.
Bitwise AND.
Concatenation of two bit vectors.
Wrapping integer decrement.
Signed integer division.
Signed integer division overflow indicator.
Unsigned integer division.
Equality indicator.
Exts(usize)
Signed extension, adds given number of sign bit copies.
Extu(usize)
Unsigned extension, adds given number of zero bits.
Signed greater-than indicator.
Unsigned greater-than indicator.
Signed greater-than-or-equal indicator.
Unsigned greater-than-or-equal indicator.
Boolean equivalence.
Boolean implication.
Wrapping integer increment.
If-then-else.
Signed less-than indicator.
Unsigned less-than indicator.
Signed less-than-or-equal indicator.
Unsigned less-than-or-equal indicator.
Signed integer modulo, sign of result matches sign of divisor.
Truncating integer multiplication.
Signed integer multiplication overflow indicator.
Unsigned integer multiplication overflow indicator.
Bitwise NAND.
Inequality indicator.
Signed integer negation.
Bitwise NOR.
Bitwise inversion.
Bitwise OR.
Bitwise AND-reduction.
Bitwise OR-reduction.
Bitwise XOR-reduction.
Repeat(usize)
Repetition.
Signed integer remainder.
Unsigned integer remainder.
Left rotation.
Right rotation.
Bit slice, Slice(a, b)
for bits from the [a; b)
half-open interval.
Left shift.
Right arithmetic shift.
Right logical shift.
Wrapping integer subtraction.
Signed integer subtraction overflow indicator.
Unsigned integer subtraction overflow indicator.
Bitwise XNOR.
Bitwise XOR.
Implementations
impl BitVecOp
[src]
pub fn from_str(name: &str, params: &[usize]) -> Result<Self, Option<usize>>
[src]
Create an operator from its string name and sequence of parameters.
Errors
- Returns
Err(None)
ifname
is not a known operator name. - Returns
Err(Some(n))
on invalid parameter count,n
is the expected count.
pub fn signature(self) -> BitVecOpSignature
[src]
Return operator signature.
pub fn is_commutative(&self) -> bool
[src]
Check whether binary operator is commutative
Trait Implementations
impl Clone for BitVecOp
[src]
impl Copy for BitVecOp
[src]
impl Debug for BitVecOp
[src]
impl Display for BitVecOp
[src]
impl Eq for BitVecOp
[src]
impl Hash for BitVecOp
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<BitVecOp> for BitVecOp
[src]
impl StructuralEq for BitVecOp
[src]
impl StructuralPartialEq for BitVecOp
[src]
Auto Trait Implementations
impl RefUnwindSafe for BitVecOp
impl Send for BitVecOp
impl Sync for BitVecOp
impl Unpin for BitVecOp
impl UnwindSafe for BitVecOp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,