pub struct PragmaState {
pub strict_vars: bool,
pub strict_subs: bool,
pub strict_refs: bool,
pub warnings: bool,
}Expand description
Pragma state tracking for use strict, use warnings, etc.
Pragma state at a given point in the code
Fields§
§strict_vars: boolWhether strict vars is enabled
strict_subs: boolWhether strict subs is enabled
strict_refs: boolWhether strict refs is enabled
warnings: boolWhether warnings are enabled
Implementations§
Source§impl PragmaState
impl PragmaState
Sourcepub fn all_strict() -> PragmaState
pub fn all_strict() -> PragmaState
Create a new pragma state with all strict modes enabled
Trait Implementations§
Source§impl Clone for PragmaState
impl Clone for PragmaState
Source§fn clone(&self) -> PragmaState
fn clone(&self) -> PragmaState
Returns a duplicate of the value. Read more
1.0.0 · 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 PragmaState
impl Debug for PragmaState
Source§impl Default for PragmaState
impl Default for PragmaState
Source§fn default() -> PragmaState
fn default() -> PragmaState
Returns the “default value” for a type. Read more
Source§impl PartialEq for PragmaState
impl PartialEq for PragmaState
impl StructuralPartialEq for PragmaState
Auto Trait Implementations§
impl Freeze for PragmaState
impl RefUnwindSafe for PragmaState
impl Send for PragmaState
impl Sync for PragmaState
impl Unpin for PragmaState
impl UnsafeUnpin for PragmaState
impl UnwindSafe for PragmaState
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