pub struct DeviceRegex {
pub envvar: Option<String>,
pub regex: Regex,
}
Expand description
A regex used for matching devices based on their names
Fields§
§envvar: Option<String>
§regex: Regex
Regex
used for matching
Trait Implementations§
Source§impl Debug for DeviceRegex
impl Debug for DeviceRegex
Source§impl From<DeviceRegex> for Filter
impl From<DeviceRegex> for Filter
Source§fn from(v: DeviceRegex) -> Self
fn from(v: DeviceRegex) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeviceRegex
impl PartialEq for DeviceRegex
Auto Trait Implementations§
impl Freeze for DeviceRegex
impl RefUnwindSafe for DeviceRegex
impl Send for DeviceRegex
impl Sync for DeviceRegex
impl Unpin for DeviceRegex
impl UnwindSafe for DeviceRegex
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