#[repr(C)]pub struct pm_source_file_node {
pub base: pm_node_t,
pub filepath: pm_string_t,
}
Expand description
SourceFileNode
Represents the use of the __FILE__
keyword.
__FILE__
^^^^^^^^
Type: ::PM_SOURCE_FILE_NODE
Flags (#pm_string_flags):
- ::PM_STRING_FLAGS_FORCED_UTF8_ENCODING
- ::PM_STRING_FLAGS_FORCED_BINARY_ENCODING
- ::PM_STRING_FLAGS_FROZEN
- ::PM_STRING_FLAGS_MUTABLE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
filepath: pm_string_t
SourceFileNode#filepath
Represents the file path being parsed. This corresponds directly to the filepath
option given to the various Prism::parse*
APIs.
Trait Implementations§
Source§impl Clone for pm_source_file_node
impl Clone for pm_source_file_node
Source§fn clone(&self) -> pm_source_file_node
fn clone(&self) -> pm_source_file_node
Returns a copy 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 pm_source_file_node
impl Debug for pm_source_file_node
Source§impl Default for pm_source_file_node
impl Default for pm_source_file_node
impl Copy for pm_source_file_node
Auto Trait Implementations§
impl Freeze for pm_source_file_node
impl RefUnwindSafe for pm_source_file_node
impl !Send for pm_source_file_node
impl !Sync for pm_source_file_node
impl Unpin for pm_source_file_node
impl UnwindSafe for pm_source_file_node
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