pub enum BinderInfo {
Default,
Implicit,
StrictImplicit,
InstImplicit,
}Expand description
Binder display annotation.
Determines how arguments are displayed and inferred.
Variants§
Default
Default explicit argument: (x : α)
Implicit
Implicit argument: {x : α}
StrictImplicit
Strict implicit: ⦃x : α⦄
InstImplicit
Instance implicit (type class): [x : α]
Implementations§
Source§impl BinderInfo
impl BinderInfo
Sourcepub fn is_explicit(self) -> bool
pub fn is_explicit(self) -> bool
Check if this is an explicit (default) binder.
Sourcepub fn is_implicit(self) -> bool
pub fn is_implicit(self) -> bool
Check if this is an implicit binder.
Sourcepub fn is_inst_implicit(self) -> bool
pub fn is_inst_implicit(self) -> bool
Check if this is an instance-implicit binder.
Sourcepub fn open_delim(self) -> &'static str
pub fn open_delim(self) -> &'static str
Return the opening delimiter for this binder.
Sourcepub fn close_delim(self) -> &'static str
pub fn close_delim(self) -> &'static str
Return the closing delimiter for this binder.
Trait Implementations§
Source§impl Clone for BinderInfo
impl Clone for BinderInfo
Source§fn clone(&self) -> BinderInfo
fn clone(&self) -> BinderInfo
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 BinderInfo
impl Debug for BinderInfo
Source§impl Hash for BinderInfo
impl Hash for BinderInfo
Source§impl PartialEq for BinderInfo
impl PartialEq for BinderInfo
impl Copy for BinderInfo
impl Eq for BinderInfo
impl StructuralPartialEq for BinderInfo
Auto Trait Implementations§
impl Freeze for BinderInfo
impl RefUnwindSafe for BinderInfo
impl Send for BinderInfo
impl Sync for BinderInfo
impl Unpin for BinderInfo
impl UnsafeUnpin for BinderInfo
impl UnwindSafe for BinderInfo
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