pub struct ControllerDescription {
pub description: String,
pub device: ControllerDevice,
}Fields§
§description: String§device: ControllerDeviceImplementations§
Source§impl ControllerDescription
impl ControllerDescription
pub fn new(description: impl Into<String>, device: ControllerDevice) -> Self
Trait Implementations§
Source§impl Clone for ControllerDescription
impl Clone for ControllerDescription
Source§fn clone(&self) -> ControllerDescription
fn clone(&self) -> ControllerDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ControllerDescription
impl Debug for ControllerDescription
Source§impl PartialEq for ControllerDescription
impl PartialEq for ControllerDescription
Source§fn eq(&self, other: &ControllerDescription) -> bool
fn eq(&self, other: &ControllerDescription) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ControllerDescription
impl StructuralPartialEq for ControllerDescription
Auto Trait Implementations§
impl Freeze for ControllerDescription
impl RefUnwindSafe for ControllerDescription
impl Send for ControllerDescription
impl Sync for ControllerDescription
impl Unpin for ControllerDescription
impl UnsafeUnpin for ControllerDescription
impl UnwindSafe for ControllerDescription
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