pub enum StdBindingKind {
Method,
Associated,
}Expand description
Which of a builtin type’s two call forms a StdBinding names.
A receiver and a name are not always one thing: Duration declares
micros, millis, seconds, minutes, and hours as both a method —
d.millis(), the reader — and an associated function — Duration.millis(n),
the builder — of the same name. (receiver, name) cannot key both without
telling the two apart, so this is the third field of the key, and it is
also why the two bindings for one name have to point at two different
functions: a Cove module cannot declare millis twice.
Variants§
Method
receiver.method(...), resolved by standard_binding.
Associated
Receiver.method(...), resolved by standard_associated_binding.
Trait Implementations§
Source§impl Clone for StdBindingKind
impl Clone for StdBindingKind
Source§fn clone(&self) -> StdBindingKind
fn clone(&self) -> StdBindingKind
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 StdBindingKind
Source§impl Debug for StdBindingKind
impl Debug for StdBindingKind
impl Eq for StdBindingKind
Source§impl PartialEq for StdBindingKind
impl PartialEq for StdBindingKind
Source§fn eq(&self, other: &StdBindingKind) -> bool
fn eq(&self, other: &StdBindingKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StdBindingKind
Auto Trait Implementations§
impl Freeze for StdBindingKind
impl RefUnwindSafe for StdBindingKind
impl Send for StdBindingKind
impl Sync for StdBindingKind
impl Unpin for StdBindingKind
impl UnsafeUnpin for StdBindingKind
impl UnwindSafe for StdBindingKind
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