pub struct VendorKey(/* private fields */);Expand description
メーカー名の比べ方(大文字小文字・空白・記号を無視。core と同じ 1 つの型)
メーカー名の鍵: 英数字だけを大文字にしたもの(“EDMUND OPTICS” と “Edmund_Optics” は同じ)。メーカー名を比べる所は
全部これを使う(以前は大文字にするだけ・英数字だけ・大文字の「含む」の 3 通りがあった)。
同じメーカーかは鍵の一致、人が書いた名前での絞り込み(検索・差し替え探索・公差)は VendorKey::matches
Implementations§
Trait Implementations§
impl Eq for VendorKey
Source§impl Ord for VendorKey
impl Ord for VendorKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for VendorKey
impl PartialOrd for VendorKey
impl StructuralPartialEq for VendorKey
Auto Trait Implementations§
impl Freeze for VendorKey
impl RefUnwindSafe for VendorKey
impl Send for VendorKey
impl Sync for VendorKey
impl Unpin for VendorKey
impl UnsafeUnpin for VendorKey
impl UnwindSafe for VendorKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more