pub struct ModeData<'s> { /* private fields */ }
Implementations§
Source§impl ModeData<'_>
impl ModeData<'_>
pub fn new(default: Mode) -> Self
pub fn is_pure_mode(&self) -> bool
pub fn is_current_local_mode(&self) -> bool
pub fn is_property_local_mode(&self) -> bool
pub fn default_mode(&self) -> Mode
pub fn set_current_mode(&mut self, mode: Mode)
pub fn set_property_mode(&mut self, mode: Mode)
pub fn is_inside_mode_function(&self) -> bool
pub fn is_inside_mode_class(&self) -> bool
pub fn is_mode_explicit(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for ModeData<'s>
impl<'s> RefUnwindSafe for ModeData<'s>
impl<'s> Send for ModeData<'s>
impl<'s> Sync for ModeData<'s>
impl<'s> Unpin for ModeData<'s>
impl<'s> UnwindSafe for ModeData<'s>
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