pub struct FirstMatch;Expand description
PaymentSelector that returns the first candidate.
Trait Implementations§
Source§impl Clone for FirstMatch
impl Clone for FirstMatch
Source§fn clone(&self) -> FirstMatch
fn clone(&self) -> FirstMatch
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 FirstMatch
Source§impl Debug for FirstMatch
impl Debug for FirstMatch
Source§impl Default for FirstMatch
impl Default for FirstMatch
Source§fn default() -> FirstMatch
fn default() -> FirstMatch
Returns the “default value” for a type. Read more
Source§impl PaymentSelector for FirstMatch
impl PaymentSelector for FirstMatch
Source§fn select<'a>(
&self,
candidates: &[&'a PaymentCandidate],
) -> Option<&'a PaymentCandidate>
fn select<'a>( &self, candidates: &[&'a PaymentCandidate], ) -> Option<&'a PaymentCandidate>
Returns the selected candidate (if any).
Auto Trait Implementations§
impl Freeze for FirstMatch
impl RefUnwindSafe for FirstMatch
impl Send for FirstMatch
impl Sync for FirstMatch
impl Unpin for FirstMatch
impl UnsafeUnpin for FirstMatch
impl UnwindSafe for FirstMatch
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