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>The set of types that this handler guarantees to provide when it continues. These types are always available for subsequent handlers in a chain or branch.
Trait Implementations§
Source§impl Clone for HandlerSignature
impl Clone for HandlerSignature
Source§fn clone(&self) -> HandlerSignature
fn clone(&self) -> HandlerSignature
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 moreSource§impl Debug for HandlerSignature
impl Debug for HandlerSignature
Source§impl PartialEq for HandlerSignature
impl PartialEq for HandlerSignature
impl Eq for HandlerSignature
impl StructuralPartialEq for HandlerSignature
Auto Trait Implementations§
impl Freeze for HandlerSignature
impl RefUnwindSafe for HandlerSignature
impl Send for HandlerSignature
impl Sync for HandlerSignature
impl Unpin for HandlerSignature
impl UnwindSafe for HandlerSignature
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