Struct ruby_prism::SourceFileNode
source · pub struct SourceFileNode<'pr> { /* private fields */ }
Expand description
Represents the use of the __FILE__
keyword.
__FILE__
^^^^^^^^
Implementations§
source§impl<'pr> SourceFileNode<'pr>
impl<'pr> SourceFileNode<'pr>
sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
sourcepub fn is_forced_utf8_encoding(&self) -> bool
pub fn is_forced_utf8_encoding(&self) -> bool
internal bytes forced the encoding to UTF-8
sourcepub fn is_forced_binary_encoding(&self) -> bool
pub fn is_forced_binary_encoding(&self) -> bool
internal bytes forced the encoding to binary
sourcepub fn is_frozen(&self) -> bool
pub fn is_frozen(&self) -> bool
frozen by virtue of a frozen_string_literal: true
comment or --enable-frozen-string-literal
sourcepub fn is_mutable(&self) -> bool
pub fn is_mutable(&self) -> bool
mutable by virtue of a frozen_string_literal: false
comment or --disable-frozen-string-literal
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for SourceFileNode<'pr>
impl<'pr> !Send for SourceFileNode<'pr>
impl<'pr> !Sync for SourceFileNode<'pr>
impl<'pr> Unpin for SourceFileNode<'pr>
impl<'pr> !UnwindSafe for SourceFileNode<'pr>
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