pub enum HandlerSignature {
Entry,
Other {
obligations: BTreeMap<Type, &'static Location<'static>>,
guaranteed_outcomes: BTreeSet<Type>,
conditional_outcomes: BTreeSet<Type>,
continues: bool,
},
}Expand description
A run-time handler signature. Used only for run-time type inference and checking of handler chains.
See crate::type_check.
Variants§
Entry
The signature corresponding to crate::entry.
Other
The handler signature with exact input and output types.
Fields
§
obligations: BTreeMap<Type, &'static Location<'static>>The map from types that this handler accepts to locations where they are required in source code.
§
guaranteed_outcomes: BTreeSet<Type>Types guaranteed to be provided whenever this handler calls its
continuation. These types are not necessarily available when the
handler returns ControlFlow::Continue to a sibling branch.
§
conditional_outcomes: BTreeSet<Type>Types this handler may pass to its continuation, but does not guarantee on every call. They cannot satisfy obligations.
§
continues: boolWhether this handler might call its continuation. Even when
false, it may return ControlFlow::Continue without calling it.
Trait Implementations§
Source§impl Clone for HandlerSignature
impl Clone for HandlerSignature
Source§impl Debug for HandlerSignature
impl Debug for HandlerSignature
impl Eq for HandlerSignature
Source§impl PartialEq for HandlerSignature
impl PartialEq for HandlerSignature
impl StructuralPartialEq for HandlerSignature
Auto Trait Implementations§
impl Forget for HandlerSignature
impl Freeze for HandlerSignature
impl Move for HandlerSignature
impl RefUnwindSafe for HandlerSignature
impl Send for HandlerSignature
impl Sync for HandlerSignature
impl Unpin for HandlerSignature
impl UnsafeUnpin for HandlerSignaturewhere
*const LeafNode<Type, &'static Location<'static>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(Type, &'static Location<'static>)>>: UnsafeUnpin,
*const LeafNode<Type, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(Type, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for HandlerSignaturewhere
BTreeMap<Type, &'static Location<'static>>: UnwindSafe,
BTreeMap<Type, SetValZST>: UnwindSafe,
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