pub(crate) enum LldbVersion {
Apple([u64; 4]),
Llvm(Version),
}Variants§
Apple([u64; 4])
LLDB distributed by Apple as part of Xcode. Uses a unique versioning scheme that does not match LLVM’s LLDB.
Llvm(Version)
LLDB distributed by LLVM, uses traditional semver.
Implementations§
Source§impl LldbVersion
impl LldbVersion
Sourcepub(crate) fn apple_from_str(version_num: &str) -> Self
pub(crate) fn apple_from_str(version_num: &str) -> Self
Takes a string consisting of 1-4 .-separated numbers and returns an LldbVersion::Apple.
If a number fails to parse, that section and any following sections are silently converted
to 0 (e.g. "15.6.asdf.3" -> [15, 6, 0, 0])
Sourcepub(crate) fn llvm_from_str(version_num: &str) -> Self
pub(crate) fn llvm_from_str(version_num: &str) -> Self
Takes a string consisting of 1-3 .-separated numbers and returns an LldbVersion::Llvm.
If a number fails to parse, that section and any following sections are silently converted
to 0 (e.g. "15.asdf.3" -> [15, 0, 0])
Trait Implementations§
Source§impl Clone for LldbVersion
impl Clone for LldbVersion
Source§fn clone(&self) -> LldbVersion
fn clone(&self) -> LldbVersion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LldbVersion
impl Debug for LldbVersion
impl Eq for LldbVersion
Source§impl PartialEq for LldbVersion
impl PartialEq for LldbVersion
impl StructuralPartialEq for LldbVersion
Auto Trait Implementations§
impl Freeze for LldbVersion
impl RefUnwindSafe for LldbVersion
impl Send for LldbVersion
impl Sync for LldbVersion
impl Unpin for LldbVersion
impl UnsafeUnpin for LldbVersion
impl UnwindSafe for LldbVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
§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
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes
Size for each variant:
Apple: 40 bytesLlvm: 40 bytes