Enum pico_common::Driver [−][src]
Supported Pico drivers
Variants
Only used to get the full dependency name on each platform
Only used to get the full dependency name on each platform
Implementations
impl Driver
[src]
pub fn from_pid(pid: u16) -> Option<Driver>
[src]
Returns the relevant Driver
for the supplied USB PID
pub fn get_binary_name(self) -> String
[src]
Returns the platform dependent name of the driver binary with file extension
let driver = pico_common::Driver::PS2000A; let binary_name = driver.get_binary_name(); if cfg!(target_os = "windows") { assert_eq!(binary_name, "ps2000a.dll"); } else if cfg!(target_os = "macos") { assert_eq!(binary_name, "libps2000a.dylib"); } else { assert_eq!(binary_name, "libps2000a.so"); }
pub fn get_dependencies_for_platform() -> Vec<Driver>
[src]
Gets the required driver dependencies for this platform
Trait Implementations
impl Clone for Driver
[src]
impl Copy for Driver
[src]
impl Debug for Driver
[src]
impl Display for Driver
[src]
impl Eq for Driver
[src]
impl FromStr for Driver
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(input: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Driver
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IntoEnumIterator for Driver
[src]
type Iterator = DriverEnumIterator
Type of the iterator over the variants.
const VARIANT_COUNT: usize
[src]
fn into_enum_iter() -> Self::Iterator
[src]
impl Ord for Driver
[src]
fn cmp(&self, other: &Driver) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Driver> for Driver
[src]
impl PartialOrd<Driver> for Driver
[src]
fn partial_cmp(&self, other: &Driver) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Driver
[src]
impl StructuralPartialEq for Driver
[src]
Auto Trait Implementations
impl RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl UnwindSafe for Driver
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,