Skip to main content

BitVec

Struct BitVec 

Source
pub struct BitVec<'st, const M: usize>(/* private fields */);
Expand description

A bit-vec is a fixed size sequence of boolean values. You can read more about it here, among other places.

Implementations§

Source§

impl<'st, const M: usize> BitVec<'st, M>

Source

pub fn new( st: &'st Storage, value: impl IntoWithStorage<'st, BitVec<'st, M>>, ) -> BitVec<'st, M>

Construct a new bit-vec. value can be either [bool; M] or i64 to enable usage with integer literals.

Note: new_prim can be used with multiple integer types instead.

Source

pub fn new_prim(st: &'st Storage, value: impl PrimInt<M>) -> BitVec<'st, M>

Construct a new bit-vec from a primitive integer (e.g. u8, u32, u64).

Source

pub fn try_into_prim<T: PrimInt<M>>(&self) -> Result<T, ParseIntError>

Try to convert this bit-vec back into a primitive integer. Returns an error if the underlying term is not a bit-vector literal.

Source

pub fn extract_<const O: usize>(self, i: usize, j: usize) -> BitVec<'st, O>

Extract a slice of the bit-vec.

The constraints i, j, M, and O are:

ⓘ
M > i >= j
O = j - i + 1

Note: This is a version of BitVec::extract that does not depend on unstable feature generic_const_exprs. If you’re using nightly consider enabling "const-bit-vec" feature flag and use BitVec::extract instead.

Source

pub fn repeat_<const O: usize>(self, count: usize) -> BitVec<'st, O>

Concatenate count copies of self to a new bit-vec

Note: This is a version of BitVec::repeat that does not depend on unstable feature generic_const_exprs. If you’re using nightly consider enabling "const-bit-vec" feature flag and use BitVec::repeat instead.

Source

pub fn concat_<const N: usize, const O: usize>( self, other: impl Into<BitVec<'st, N>>, ) -> BitVec<'st, O>

Concatenates self and other bit-vecs to a single contiguous bit-vec with length N + M

Note: This is a version of BitVec::concat that does not depend on unstable feature generic_const_exprs. If you’re using nightly consider enabling "const-bit-vec" feature flag and use BitVec::concat instead.

Source

pub fn zero_extend_<const O: usize>(self, n: usize) -> BitVec<'st, O>

Extend the bit-vec with zeros to the left.

Note: This is a version of BitVec::zero_extend that does not depend on unstable feature generic_const_exprs. If you’re using nightly consider enabling "const-bit-vec" feature flag and use BitVec::zero_extend instead.

Source

pub fn sign_extend_<const O: usize>(self, n: usize) -> BitVec<'st, O>

Extend the bit-vec with the sign bit to the left.

Note: This is a version of BitVec::sign_extend that does not depend on unstable feature generic_const_exprs. If you’re using nightly consider enabling "const-bit-vec" feature flag and use BitVec::sign_extend instead.

Source

pub fn rotate_left(self, n: usize) -> Self

Rotate the bit-vec to the left.

Source

pub fn rotate_right(self, n: usize) -> Self

Rotate the bit-vec to the right.

Source

pub fn bvnot(self) -> Self

Calls (bvnot self) i.e. bitwise not

Source

pub fn bvneg(self) -> Self

Calls (bvneg self) i.e. two’s complement negation

Source

pub fn bvnand(self, other: impl Into<Self>) -> Self

Calls (bvnand self other) i.e. bitwise nand

Source

pub fn bvnor(self, other: impl Into<Self>) -> Self

Calls (bvnor self other) i.e. bitwise nor

Source

pub fn bvxnor(self, other: impl Into<Self>) -> Self

Calls (bvxnor self other) i.e. bitwise xnor

Source

pub fn bvcomp(self, other: impl Into<Self>) -> BitVec<'st, 1>

Calls (bvcomp self other) i.e. bitwise comparison

Source

pub fn bvsdiv(self, other: impl Into<Self>) -> Self

Calls (bvsdiv self other) i.e. signed division

Source

pub fn bvsrem(self, other: impl Into<Self>) -> Self

Calls (bvsrem self other) i.e. signed remainder (sign follows dividend)

Source

pub fn bvsmod(self, other: impl Into<Self>) -> Self

Calls (bvsmod self other) i.e. signed remainder (sign follows divisor)

Source

pub fn bvashr(self, other: impl Into<Self>) -> Self

Calls (bvashr self other) i.e. arithmetic shift right

Source

pub fn bvult(self, other: impl Into<Self>) -> Bool<'st>

Calls (bvult self other)

Source

pub fn bvule(self, other: impl Into<Self>) -> Bool<'st>

Calls (bvule self other) i.e. unsigned less or equal

Source

pub fn bvugt(self, other: impl Into<Self>) -> Bool<'st>

Calls (bvugt self other) i.e. unsigned greater than

Source

pub fn bvuge(self, other: impl Into<Self>) -> Bool<'st>

Calls (bvuge self other) i.e. unsigned greater or equal

Source

pub fn bvslt(self, other: impl Into<Self>) -> Bool<'st>

Calls (bvslt self other) i.e. signed less than

Source

pub fn bvsle(self, other: impl Into<Self>) -> Bool<'st>

Calls (bvsle self other) i.e. signed less or equal

Source

pub fn bvsgt(self, other: impl Into<Self>) -> Bool<'st>

Calls (bvsgt self other) i.e. signed greater than

Source

pub fn bvsge(self, other: impl Into<Self>) -> Bool<'st>

Calls (bvsge self other) i.e. signed greater or equal

Source§

impl<'st, const M: usize> BitVec<'st, M>

Source

pub fn bvand(self, other: impl Into<Self>) -> Self

Calls (bvand self other)

Source§

impl<'st, const M: usize> BitVec<'st, M>

Source

pub fn bvor(self, other: impl Into<Self>) -> Self

Calls (bvor self other)

Source§

impl<'st, const M: usize> BitVec<'st, M>

Source

pub fn bvxor(self, other: impl Into<Self>) -> Self

Calls (bvxor self other)

Source§

impl<'st, const M: usize> BitVec<'st, M>

Source

pub fn bvadd(self, other: impl Into<Self>) -> Self

Calls (bvadd self other)

Source§

impl<'st, const M: usize> BitVec<'st, M>

Source

pub fn bvsub(self, other: impl Into<Self>) -> Self

Calls (bvsub self other)

Source§

impl<'st, const M: usize> BitVec<'st, M>

Source

pub fn bvmul(self, other: impl Into<Self>) -> Self

Calls (bvmul self other)

Source§

impl<'st, const M: usize> BitVec<'st, M>

Source

pub fn bvudiv(self, other: impl Into<Self>) -> Self

Calls (bvudiv self other)

Source§

impl<'st, const M: usize> BitVec<'st, M>

Source

pub fn bvurem(self, other: impl Into<Self>) -> Self

Calls (bvurem self other)

Source§

impl<'st, const M: usize> BitVec<'st, M>

Source

pub fn bvlshr(self, other: impl Into<Self>) -> Self

Calls (bvlshr self other)

Source§

impl<'st, const M: usize> BitVec<'st, M>

Source

pub fn bvshl(self, other: impl Into<Self>) -> Self

Calls (bvshl self other)

Trait Implementations§

Source§

impl<'st, const M: usize, R> Add<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

type Output = BitVec<'st, M>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: R) -> Self::Output

Performs the + operation. Read more
Source§

impl<'st, const M: usize, R> AddAssign<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

fn add_assign(&mut self, rhs: R)

Performs the += operation. Read more
Source§

impl<'st, const M: usize, R> BitAnd<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

type Output = BitVec<'st, M>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: R) -> Self::Output

Performs the & operation. Read more
Source§

impl<'st, const M: usize, R> BitAndAssign<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

fn bitand_assign(&mut self, rhs: R)

Performs the &= operation. Read more
Source§

impl<'st, const M: usize, R> BitOr<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

type Output = BitVec<'st, M>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: R) -> Self::Output

Performs the | operation. Read more
Source§

impl<'st, const M: usize, R> BitOrAssign<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

fn bitor_assign(&mut self, rhs: R)

Performs the |= operation. Read more
Source§

impl<'st, const M: usize, R> BitXor<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

type Output = BitVec<'st, M>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: R) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'st, const M: usize, R> BitXorAssign<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

fn bitxor_assign(&mut self, rhs: R)

Performs the ^= operation. Read more
Source§

impl<'st, const M: usize> Clone for BitVec<'st, M>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'st, const M: usize> Copy for BitVec<'st, M>

Source§

impl<'st, const M: usize> Debug for BitVec<'st, M>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const M: usize> Display for BitVec<'_, M>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'st, const M: usize, R> Div<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

type Output = BitVec<'st, M>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: R) -> Self::Output

Performs the / operation. Read more
Source§

impl<'st, const M: usize, R> DivAssign<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

fn div_assign(&mut self, rhs: R)

Performs the /= operation. Read more
Source§

impl<'st, const M: usize> From<(STerm<'st>, Sort<'st>)> for BitVec<'st, M>

Source§

fn from((t, _): (STerm<'st>, Sort<'st>)) -> Self

Converts to this type from the input type.
Source§

impl<'st, const M: usize> From<BitVec<'st, M>> for Dynamic<'st>

Source§

fn from(i: BitVec<'st, M>) -> Self

Converts to this type from the input type.
Source§

impl<'st, const M: usize> From<BitVec<'st, M>> for STerm<'st>

Source§

fn from(i: BitVec<'st, M>) -> Self

Converts to this type from the input type.
Source§

impl<'st, const M: usize> From<Const<'st, BitVec<'st, M>>> for BitVec<'st, M>

Source§

fn from(c: Const<'st, BitVec<'st, M>>) -> Self

Converts to this type from the input type.
Source§

impl<'st, const M: usize> From<STerm<'st>> for BitVec<'st, M>

Source§

fn from(t: STerm<'st>) -> Self

Converts to this type from the input type.
Source§

impl<'st, const M: usize> IntoWithStorage<'st, BitVec<'st, M>> for [bool; M]

Source§

fn into_with_storage(self, st: &'st Storage) -> BitVec<'st, M>

Construct a STerm with the presence of Storage
Source§

impl<'st, const M: usize> IntoWithStorage<'st, BitVec<'st, M>> for i64

Source§

fn into_with_storage(self, st: &'st Storage) -> BitVec<'st, M>

Construct a STerm with the presence of Storage
Source§

impl<'st, const M: usize, R> Mul<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

type Output = BitVec<'st, M>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: R) -> Self::Output

Performs the * operation. Read more
Source§

impl<'st, const M: usize, R> MulAssign<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

fn mul_assign(&mut self, rhs: R)

Performs the *= operation. Read more
Source§

impl<const M: usize> Neg for BitVec<'_, M>

Source§

type Output = BitVec<'_, M>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<const M: usize> Not for BitVec<'_, M>

Source§

type Output = BitVec<'_, M>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<'st, const M: usize, R> Rem<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

type Output = BitVec<'st, M>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: R) -> Self::Output

Performs the % operation. Read more
Source§

impl<'st, const M: usize, R> RemAssign<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

fn rem_assign(&mut self, rhs: R)

Performs the %= operation. Read more
Source§

impl<'st, const M: usize, R> Shl<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

type Output = BitVec<'st, M>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: R) -> Self::Output

Performs the << operation. Read more
Source§

impl<'st, const M: usize, R> ShlAssign<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

fn shl_assign(&mut self, rhs: R)

Performs the <<= operation. Read more
Source§

impl<'st, const M: usize, R> Shr<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

type Output = BitVec<'st, M>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: R) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'st, const M: usize, R> ShrAssign<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

fn shr_assign(&mut self, rhs: R)

Performs the >>= operation. Read more
Source§

impl<'st, const M: usize> StaticSorted<'st> for BitVec<'st, M>

Source§

const AST_SORT: Sort<'static>

The sort of this sort.
Source§

type Inner = BitVec<'st, M>

The inner type of the term. This is used for Const<'st, T> where the inner type is T.
Source§

fn static_st(&self) -> &'st Storage

The storage associated with the term.
Source§

fn sort() -> Sort<'st>

The sort of this sort.
Source§

fn new_const(st: &'st Storage, name: &str) -> Const<'st, Self>

Construct a new constante of this sort.
Source§

impl<'st, const M: usize, R> Sub<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

type Output = BitVec<'st, M>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: R) -> Self::Output

Performs the - operation. Read more
Source§

impl<'st, const M: usize, R> SubAssign<R> for BitVec<'st, M>
where R: Into<BitVec<'st, M>>,

Source§

fn sub_assign(&mut self, rhs: R)

Performs the -= operation. Read more
Source§

impl<'st, const M: usize> TryFrom<BitVec<'st, M>> for i64

Source§

type Error = ParseIntError

The type returned in the event of a conversion error.
Source§

fn try_from(value: BitVec<'st, M>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'st, const M: usize> TryFrom<BitVec<'st, M>> for [bool; M]

Source§

type Error = ParseIntError

The type returned in the event of a conversion error.
Source§

fn try_from(value: BitVec<'st, M>) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<'st, const M: usize> !RefUnwindSafe for BitVec<'st, M>

§

impl<'st, const M: usize> !Send for BitVec<'st, M>

§

impl<'st, const M: usize> !Sync for BitVec<'st, M>

§

impl<'st, const M: usize> !UnwindSafe for BitVec<'st, M>

§

impl<'st, const M: usize> Freeze for BitVec<'st, M>

§

impl<'st, const M: usize> Unpin for BitVec<'st, M>

§

impl<'st, const M: usize> UnsafeUnpin for BitVec<'st, M>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<'st, T> IntoWithStorage<'st, T> for T

Source§

fn into_with_storage(self, _st: &'st Storage) -> T

Construct a STerm with the presence of Storage
Source§

impl<D> OwoColorize for D

Source§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
Source§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
Source§

fn black(&self) -> FgColorDisplay<'_, Black, Self>

Change the foreground color to black
Source§

fn on_black(&self) -> BgColorDisplay<'_, Black, Self>

Change the background color to black
Source§

fn red(&self) -> FgColorDisplay<'_, Red, Self>

Change the foreground color to red
Source§

fn on_red(&self) -> BgColorDisplay<'_, Red, Self>

Change the background color to red
Source§

fn green(&self) -> FgColorDisplay<'_, Green, Self>

Change the foreground color to green
Source§

fn on_green(&self) -> BgColorDisplay<'_, Green, Self>

Change the background color to green
Source§

fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>

Change the foreground color to yellow
Source§

fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>

Change the background color to yellow
Source§

fn blue(&self) -> FgColorDisplay<'_, Blue, Self>

Change the foreground color to blue
Source§

fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>

Change the background color to blue
Source§

fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to magenta
Source§

fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to magenta
Source§

fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to purple
Source§

fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to purple
Source§

fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>

Change the foreground color to cyan
Source§

fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>

Change the background color to cyan
Source§

fn white(&self) -> FgColorDisplay<'_, White, Self>

Change the foreground color to white
Source§

fn on_white(&self) -> BgColorDisplay<'_, White, Self>

Change the background color to white
Source§

fn default_color(&self) -> FgColorDisplay<'_, Default, Self>

Change the foreground color to the terminal default
Source§

fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>

Change the background color to the terminal default
Source§

fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>

Change the foreground color to bright black
Source§

fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>

Change the background color to bright black
Source§

fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>

Change the foreground color to bright red
Source§

fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>

Change the background color to bright red
Source§

fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>

Change the foreground color to bright green
Source§

fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>

Change the background color to bright green
Source§

fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>

Change the foreground color to bright yellow
Source§

fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>

Change the background color to bright yellow
Source§

fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>

Change the foreground color to bright blue
Source§

fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>

Change the background color to bright blue
Source§

fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright magenta
Source§

fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright magenta
Source§

fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright purple
Source§

fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright purple
Source§

fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>

Change the foreground color to bright cyan
Source§

fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>

Change the background color to bright cyan
Source§

fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>

Change the foreground color to bright white
Source§

fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>

Change the background color to bright white
Source§

fn bold(&self) -> BoldDisplay<'_, Self>

Make the text bold
Source§

fn dimmed(&self) -> DimDisplay<'_, Self>

Make the text dim
Source§

fn italic(&self) -> ItalicDisplay<'_, Self>

Make the text italicized
Source§

fn underline(&self) -> UnderlineDisplay<'_, Self>

Make the text underlined
Make the text blink
Make the text blink (but fast!)
Source§

fn reversed(&self) -> ReversedDisplay<'_, Self>

Swap the foreground and background colors
Source§

fn hidden(&self) -> HiddenDisplay<'_, Self>

Hide the text
Source§

fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>

Cross out the text
Source§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
Source§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
Source§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
Source§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
Source§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
Source§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
Source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
Source§

impl<'st, T> Sorted<'st> for T
where T: StaticSorted<'st>,

Source§

type Inner = <T as StaticSorted<'st>>::Inner

The inner type of the term. This is used for Const<'st, T> where the inner type is T.
Source§

fn sort(&self) -> Sort<'st>

The sort of the term.
Source§

fn is_sort(sort: Sort<'st>) -> bool

Check if a sort is of this type.
Source§

fn st(&self) -> &'st Storage

The storage associated with any term of this sort.
Source§

fn sterm(self) -> STerm<'st>

Constructy the smtlib AST representation of the term with associated storage.
Source§

fn term(self) -> &'st Term<'st>

Construct the smtlib AST representation of term.
Source§

fn from_dynamic(d: Dynamic<'st>) -> Self
where Self: From<(STerm<'st>, Sort<'st>)>,

Casts a dynamically typed term into a concrete type
Source§

fn try_from_dynamic(d: Dynamic<'st>) -> Option<Self>
where Self: From<(STerm<'st>, Sort<'st>)>,

Casts a dynamically typed term into a concrete type iff the dynamic sort matches
Source§

fn into_dynamic(self) -> Dynamic<'st>

Casts the term into a dynamic term which looses static types and stores the sort dynamically.
Source§

fn _eq(self, other: impl IntoWithStorage<'st, Self::Inner>) -> Bool<'st>

Construct the term representing (= self other)
Source§

fn _neq(self, other: impl IntoWithStorage<'st, Self::Inner>) -> Bool<'st>

Construct the term representing (distinct self other)
Source§

fn labeled(self) -> (Label<Self>, Self::Inner)
where Self::Inner: From<STerm<'st>>,

Wraps the term in a a label, which can be used to extract information from models at a later point.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.