pub struct NarrowingResult {
pub true_type: TypeId,
pub false_type: TypeId,
}Expand description
Result of a narrowing operation.
Represents the types in both branches of a condition.
Fields§
§true_type: TypeIdThe type in the “true” branch of the condition
false_type: TypeIdThe type in the “false” branch of the condition
Trait Implementations§
Source§impl Clone for NarrowingResult
impl Clone for NarrowingResult
Source§fn clone(&self) -> NarrowingResult
fn clone(&self) -> NarrowingResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NarrowingResult
impl RefUnwindSafe for NarrowingResult
impl Send for NarrowingResult
impl Sync for NarrowingResult
impl Unpin for NarrowingResult
impl UnsafeUnpin for NarrowingResult
impl UnwindSafe for NarrowingResult
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