Enum Op2Enum

Source
pub enum Op2Enum {
Show 40 variants Concat(Concat), Eq(Eq), At(At), PrefixOf(PrefixOf), SuffixOf(SuffixOf), Contains(Contains), Split(Split), Join(Join), Count(Count), Add(Add), Sub(Sub), Head(Head), Tail(Tail), TimeFloor(TimeFloor), TimeAdd(TimeAdd), Floor(Floor), Round(Round), Ceil(Ceil), FAdd(FAdd), FSub(FSub), FFloor(FFloor), FRound(FRound), FCeil(FCeil), FCount(FCount), FShl10(FShl10), TimeMul(TimeMul), StrAt(StrAt), BvAdd(BvAdd), BvSub(BvSub), BvMul(BvMul), BvUDiv(BvUDiv), BvURem(BvURem), BvSDiv(BvSDiv), BvSRem(BvSRem), BvOr(BvOr), BvAnd(BvAnd), BvXor(BvXor), BvShl(BvShl), BvAShr(BvAShr), BvLShr(BvLShr),
}
Expand description

An enum representing binary operations used in the expression manipulation framework.

This enumeration includes a diverse set of operations applicable to strings, numbers, lists, and time-related data. Typical operations include string manipulations such as Concat, PrefixOf, and Contains, which allow for constructing and checking properties of strings. There are also numerical operations like Add, Sub, alongside floating-point specific operations like FAdd, FSub, and rounding techniques such as Floor, Round, and Ceil.

Moreover, the enum encapsulates list operations such as Head, Tail, and Filter, indicating capabilities to manipulate and traverse lists. Time-based operations like TimeFloor, TimeAdd, and TimeMul are included, reflecting tasks related to temporal data. Split and Join manage compound string or list structures, and StrAt and At facilitate index-based access in strings or lists. The enumeration is designed to accommodate various contexts and operations necessary for a comprehensive synthesis framework, supporting diverse data types and manipulation techniques.

Variants§

§

Concat(Concat)

§

Eq(Eq)

§

At(At)

§

PrefixOf(PrefixOf)

§

SuffixOf(SuffixOf)

§

Contains(Contains)

§

Split(Split)

§

Join(Join)

§

Count(Count)

§

Add(Add)

§

Sub(Sub)

§

Head(Head)

§

Tail(Tail)

§

TimeFloor(TimeFloor)

§

TimeAdd(TimeAdd)

§

Floor(Floor)

§

Round(Round)

§

Ceil(Ceil)

§

FAdd(FAdd)

§

FSub(FSub)

§

FFloor(FFloor)

§

FRound(FRound)

§

FCeil(FCeil)

§

FCount(FCount)

§

FShl10(FShl10)

§

TimeMul(TimeMul)

§

StrAt(StrAt)

§

BvAdd(BvAdd)

§

BvSub(BvSub)

§

BvMul(BvMul)

§

BvUDiv(BvUDiv)

§

BvURem(BvURem)

§

BvSDiv(BvSDiv)

§

BvSRem(BvSRem)

§

BvOr(BvOr)

§

BvAnd(BvAnd)

§

BvXor(BvXor)

§

BvShl(BvShl)

§

BvAShr(BvAShr)

§

BvLShr(BvLShr)

Implementations§

Source§

impl Op2Enum

Source

pub fn eval(&self, a1: Value, a2: Value) -> Value

Evaluates a binary operation encapsulated by the Op2Enum.

It takes two arguments, both of type Value, and returns the result of attempting the operation. The method utilizes the try_eval function internally, discarding the primary component of its result and only retaining the secondary element, which represents the successfully evaluated output. This signifies that while the try_eval function may return additional diagnostic information or status, this method focuses solely on obtaining the computed value from the operation.

Source§

impl Op2Enum

Source

pub fn from_name(name: &str, config: &Config) -> Self

Converts a string name into an Op2Enum variant by matching the provided name with known operation names and configurations.

The function utilizes a macro to iterate through all defined binary operations (Op2) and checks if the operation’s name matches the input string. If a match is found, it retrieves the operation with the given configuration and converts it into the Op2Enum type. For specific operators like "+" and "-", the function directly constructs their corresponding Add or Sub variants, respectively. If no matching operation is found, it raises a panic with an error message indicating the unknown operator name.

Source

pub fn name(&self) -> &'static str

Returns the name of the operation represented by the given instance of the enumeration.

This implementation utilizes a macro to iterate over possible operation variants defined in the enumeration, invoking the name method on each. The name method of a specific operation is called, and its result is returned if the instance matches one of the variants. If no match is found, the function will trigger a panic, indicating that the instance does not correspond to a recognized operation variant. This design aims to streamline name retrieval across multiple operation types within the Op2Enum.

Trait Implementations§

Source§

impl Clone for Op2Enum

Source§

fn clone(&self) -> Op2Enum

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Display for Op2Enum

Source§

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

Provides a formatting implementation for the Op2Enum type, utilizing the Rust standard library’s fmt trait.

This method employs a macro to streamline the process of matching against all possible Op2Enum variants, applying the formatting operation uniformly. Within the macro _do, each variant is checked using pattern matching, and upon a match, it writes the variant’s name to the provided formatter. The macro ultimately integrates with a custom crate-level macro crate::for_all_op2!() to encompass all operations within Op2Enum, ensuring the method comprehensively formats each operation, returning a Result to indicate success or failure of the formatting operation.

Source§

impl Enumerator2 for Op2Enum

Source§

fn enumerate( &self, this: &'static Op2Enum, exec: &'static Executor, opnt: [usize; 2], ) -> Result<(), ()>

Source§

impl From<Add> for Op2Enum

Source§

fn from(v: Add) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<At> for Op2Enum

Source§

fn from(v: At) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvAShr> for Op2Enum

Source§

fn from(v: BvAShr) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvAdd> for Op2Enum

Source§

fn from(v: BvAdd) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvAnd> for Op2Enum

Source§

fn from(v: BvAnd) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvLShr> for Op2Enum

Source§

fn from(v: BvLShr) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvMul> for Op2Enum

Source§

fn from(v: BvMul) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvOr> for Op2Enum

Source§

fn from(v: BvOr) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvSDiv> for Op2Enum

Source§

fn from(v: BvSDiv) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvSRem> for Op2Enum

Source§

fn from(v: BvSRem) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvShl> for Op2Enum

Source§

fn from(v: BvShl) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvSub> for Op2Enum

Source§

fn from(v: BvSub) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvUDiv> for Op2Enum

Source§

fn from(v: BvUDiv) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvURem> for Op2Enum

Source§

fn from(v: BvURem) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<BvXor> for Op2Enum

Source§

fn from(v: BvXor) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Ceil> for Op2Enum

Source§

fn from(v: Ceil) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Concat> for Op2Enum

Source§

fn from(v: Concat) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Contains> for Op2Enum

Source§

fn from(v: Contains) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Count> for Op2Enum

Source§

fn from(v: Count) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Eq> for Op2Enum

Source§

fn from(v: Eq) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<FAdd> for Op2Enum

Source§

fn from(v: FAdd) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<FCeil> for Op2Enum

Source§

fn from(v: FCeil) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<FCount> for Op2Enum

Source§

fn from(v: FCount) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<FFloor> for Op2Enum

Source§

fn from(v: FFloor) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<FRound> for Op2Enum

Source§

fn from(v: FRound) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<FShl10> for Op2Enum

Source§

fn from(v: FShl10) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<FSub> for Op2Enum

Source§

fn from(v: FSub) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Floor> for Op2Enum

Source§

fn from(v: Floor) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Head> for Op2Enum

Source§

fn from(v: Head) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Join> for Op2Enum

Source§

fn from(v: Join) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<PrefixOf> for Op2Enum

Source§

fn from(v: PrefixOf) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Round> for Op2Enum

Source§

fn from(v: Round) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Split> for Op2Enum

Source§

fn from(v: Split) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<StrAt> for Op2Enum

Source§

fn from(v: StrAt) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Sub> for Op2Enum

Source§

fn from(v: Sub) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<SuffixOf> for Op2Enum

Source§

fn from(v: SuffixOf) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<Tail> for Op2Enum

Source§

fn from(v: Tail) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<TimeAdd> for Op2Enum

Source§

fn from(v: TimeAdd) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<TimeFloor> for Op2Enum

Source§

fn from(v: TimeFloor) -> Op2Enum

Converts to this type from the input type.
Source§

impl From<TimeMul> for Op2Enum

Source§

fn from(v: TimeMul) -> Op2Enum

Converts to this type from the input type.
Source§

impl Hash for Op2Enum

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Op2 for Op2Enum

Source§

fn cost(&self) -> usize

Source§

fn try_eval( &self, __enum_dispatch_arg_0: Value, __enum_dispatch_arg_1: Value, ) -> (bool, Value)

Source§

impl PartialEq for Op2Enum

Source§

fn eq(&self, other: &Op2Enum) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryInto<Add> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Add, <Self as TryInto<Add>>::Error>

Performs the conversion.
Source§

impl TryInto<At> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<At, <Self as TryInto<At>>::Error>

Performs the conversion.
Source§

impl TryInto<BvAShr> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvAShr, <Self as TryInto<BvAShr>>::Error>

Performs the conversion.
Source§

impl TryInto<BvAdd> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvAdd, <Self as TryInto<BvAdd>>::Error>

Performs the conversion.
Source§

impl TryInto<BvAnd> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvAnd, <Self as TryInto<BvAnd>>::Error>

Performs the conversion.
Source§

impl TryInto<BvLShr> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvLShr, <Self as TryInto<BvLShr>>::Error>

Performs the conversion.
Source§

impl TryInto<BvMul> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvMul, <Self as TryInto<BvMul>>::Error>

Performs the conversion.
Source§

impl TryInto<BvOr> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvOr, <Self as TryInto<BvOr>>::Error>

Performs the conversion.
Source§

impl TryInto<BvSDiv> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvSDiv, <Self as TryInto<BvSDiv>>::Error>

Performs the conversion.
Source§

impl TryInto<BvSRem> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvSRem, <Self as TryInto<BvSRem>>::Error>

Performs the conversion.
Source§

impl TryInto<BvShl> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvShl, <Self as TryInto<BvShl>>::Error>

Performs the conversion.
Source§

impl TryInto<BvSub> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvSub, <Self as TryInto<BvSub>>::Error>

Performs the conversion.
Source§

impl TryInto<BvUDiv> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvUDiv, <Self as TryInto<BvUDiv>>::Error>

Performs the conversion.
Source§

impl TryInto<BvURem> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvURem, <Self as TryInto<BvURem>>::Error>

Performs the conversion.
Source§

impl TryInto<BvXor> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BvXor, <Self as TryInto<BvXor>>::Error>

Performs the conversion.
Source§

impl TryInto<Ceil> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Ceil, <Self as TryInto<Ceil>>::Error>

Performs the conversion.
Source§

impl TryInto<Concat> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Concat, <Self as TryInto<Concat>>::Error>

Performs the conversion.
Source§

impl TryInto<Contains> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Contains, <Self as TryInto<Contains>>::Error>

Performs the conversion.
Source§

impl TryInto<Count> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Count, <Self as TryInto<Count>>::Error>

Performs the conversion.
Source§

impl TryInto<Eq> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Eq, <Self as TryInto<Eq>>::Error>

Performs the conversion.
Source§

impl TryInto<FAdd> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<FAdd, <Self as TryInto<FAdd>>::Error>

Performs the conversion.
Source§

impl TryInto<FCeil> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<FCeil, <Self as TryInto<FCeil>>::Error>

Performs the conversion.
Source§

impl TryInto<FCount> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<FCount, <Self as TryInto<FCount>>::Error>

Performs the conversion.
Source§

impl TryInto<FFloor> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<FFloor, <Self as TryInto<FFloor>>::Error>

Performs the conversion.
Source§

impl TryInto<FRound> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<FRound, <Self as TryInto<FRound>>::Error>

Performs the conversion.
Source§

impl TryInto<FShl10> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<FShl10, <Self as TryInto<FShl10>>::Error>

Performs the conversion.
Source§

impl TryInto<FSub> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<FSub, <Self as TryInto<FSub>>::Error>

Performs the conversion.
Source§

impl TryInto<Floor> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Floor, <Self as TryInto<Floor>>::Error>

Performs the conversion.
Source§

impl TryInto<Head> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Head, <Self as TryInto<Head>>::Error>

Performs the conversion.
Source§

impl TryInto<Join> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Join, <Self as TryInto<Join>>::Error>

Performs the conversion.
Source§

impl TryInto<PrefixOf> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<PrefixOf, <Self as TryInto<PrefixOf>>::Error>

Performs the conversion.
Source§

impl TryInto<Round> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Round, <Self as TryInto<Round>>::Error>

Performs the conversion.
Source§

impl TryInto<Split> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Split, <Self as TryInto<Split>>::Error>

Performs the conversion.
Source§

impl TryInto<StrAt> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<StrAt, <Self as TryInto<StrAt>>::Error>

Performs the conversion.
Source§

impl TryInto<Sub> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Sub, <Self as TryInto<Sub>>::Error>

Performs the conversion.
Source§

impl TryInto<SuffixOf> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<SuffixOf, <Self as TryInto<SuffixOf>>::Error>

Performs the conversion.
Source§

impl TryInto<Tail> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Tail, <Self as TryInto<Tail>>::Error>

Performs the conversion.
Source§

impl TryInto<TimeAdd> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<TimeAdd, <Self as TryInto<TimeAdd>>::Error>

Performs the conversion.
Source§

impl TryInto<TimeFloor> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<TimeFloor, <Self as TryInto<TimeFloor>>::Error>

Performs the conversion.
Source§

impl TryInto<TimeMul> for Op2Enum

Source§

type Error = &'static str

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

fn try_into(self) -> Result<TimeMul, <Self as TryInto<TimeMul>>::Error>

Performs the conversion.
Source§

impl Eq for Op2Enum

Source§

impl StructuralPartialEq for Op2Enum

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AllocForAny<T> for T

Source§

fn galloc(self) -> &'static T

Provides a method to allocate an instance of T on the heap with a static lifetime.

This implementation of galloc takes ownership of the T instance and uses the alloc function to place it in a location with a static lifetime, presumably managing it in a way that ensures its persistence for the duration of the program. This can be particularly useful for scenarios where a static lifetime is required, such as when interfacing with systems or patterns that necessitate global state or long-lived data.

Source§

fn galloc_mut(self) -> &'static T

Provides a method that moves the instance and returns a reference to it allocated with a static lifetime.

This method utilizes alloc_mut to perform the allocation, likely involving allocating the resource in a manner that ensures it lives for the entire duration of the application. These semantics allow the user to safely assume that the reference will not expire during the program’s execution, making it suitable for long-lived data structures or operations that require such guarantees.

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, dst: *mut u8)

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

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V