Enum symbolic_symcache::DataSource
source · #[repr(u32)]
pub enum DataSource {
Unknown,
Dwarf,
SymbolTable,
BreakpadSym,
// some variants omitted
}
Variants
Unknown
Dwarf
SymbolTable
BreakpadSym
Implementations
sourceimpl DataSource
impl DataSource
sourcepub fn from_u32(val: u32) -> Result<DataSource, UnknownDataSourceError>
pub fn from_u32(val: u32) -> Result<DataSource, UnknownDataSourceError>
Creates a data soure from the u32 it represents
Trait Implementations
sourceimpl Clone for DataSource
impl Clone for DataSource
sourcefn clone(&self) -> DataSource
fn clone(&self) -> DataSource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DataSource
impl Debug for DataSource
sourceimpl Default for DataSource
impl Default for DataSource
sourcefn default() -> DataSource
fn default() -> DataSource
Returns the “default value” for a type. Read more
sourceimpl Hash for DataSource
impl Hash for DataSource
sourceimpl Ord for DataSource
impl Ord for DataSource
sourcefn cmp(&self, other: &DataSource) -> Ordering
fn cmp(&self, other: &DataSource) -> Ordering
1.21.0 · sourcefn 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 · sourcefn 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
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<DataSource> for DataSource
impl PartialEq<DataSource> for DataSource
sourcefn eq(&self, other: &DataSource) -> bool
fn eq(&self, other: &DataSource) -> bool
sourceimpl PartialOrd<DataSource> for DataSource
impl PartialOrd<DataSource> for DataSource
sourcefn partial_cmp(&self, other: &DataSource) -> Option<Ordering>
fn partial_cmp(&self, other: &DataSource) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DataSource
impl Eq for DataSource
impl StructuralEq for DataSource
impl StructuralPartialEq for DataSource
Auto Trait Implementations
impl RefUnwindSafe for DataSource
impl Send for DataSource
impl Sync for DataSource
impl Unpin for DataSource
impl UnwindSafe for DataSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more