pub struct Target {
pub bits: u32,
pub base_extension: char,
pub extensions: HashSet<char>,
pub suffix: String,
pub vendor_os: String,
}Fields§
§bits: u32§base_extension: char§extensions: HashSet<char>§suffix: String§vendor_os: StringImplementations§
Source§impl Target
impl Target
pub fn from_target_str(target_str: &str) -> Self
pub fn retain_extensions(&mut self, extensions: &str)
pub fn remove_extensions(&mut self, extensions: &str)
pub fn add_extensions(&mut self, extensions: &str)
pub fn has_extension(&self, extension: char) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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