pub struct SwitchInfo {
pub targets: BlockCallList,
pub cases: ImmList,
}Expand description
What a switch needs beyond the value it switches on.
Fields§
§targets: BlockCallListThe targets, with the default first and one for each case after it.
cases: ImmListThe case values, one for each target after the default.
Trait Implementations§
Source§impl Clone for SwitchInfo
impl Clone for SwitchInfo
Source§fn clone(&self) -> SwitchInfo
fn clone(&self) -> SwitchInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SwitchInfo
Source§impl Debug for SwitchInfo
impl Debug for SwitchInfo
impl Eq for SwitchInfo
Source§impl PartialEq for SwitchInfo
impl PartialEq for SwitchInfo
impl StructuralPartialEq for SwitchInfo
Auto Trait Implementations§
impl Freeze for SwitchInfo
impl RefUnwindSafe for SwitchInfo
impl Send for SwitchInfo
impl Sync for SwitchInfo
impl Unpin for SwitchInfo
impl UnsafeUnpin for SwitchInfo
impl UnwindSafe for SwitchInfo
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