pub enum SdkSorting {
None,
VersionDescending,
VersionAscending,
}
Expand description
Sorting strategy to apply to SDK searches.
Variants§
None
Do not apply any sorting.
This will return SDKs in the order they are discovered from the input paths.
VersionDescending
Order SDKs by their version in descending order.
Newer SDKs will come before older SDKs.
VersionAscending
Order SDKs by their version in ascending order.
Older SDKs will come before newer SDKs.
Implementations§
Source§impl SdkSorting
impl SdkSorting
pub fn compare_version( &self, a: Option<&SdkVersion>, b: Option<&SdkVersion>, ) -> Ordering
Trait Implementations§
Source§impl Clone for SdkSorting
impl Clone for SdkSorting
Source§fn clone(&self) -> SdkSorting
fn clone(&self) -> SdkSorting
Returns a copy 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 SdkSorting
impl Debug for SdkSorting
Source§impl Display for SdkSorting
impl Display for SdkSorting
Source§impl PartialEq for SdkSorting
impl PartialEq for SdkSorting
impl Copy for SdkSorting
impl Eq for SdkSorting
impl StructuralPartialEq for SdkSorting
Auto Trait Implementations§
impl Freeze for SdkSorting
impl RefUnwindSafe for SdkSorting
impl Send for SdkSorting
impl Sync for SdkSorting
impl Unpin for SdkSorting
impl UnwindSafe for SdkSorting
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.