pub struct FileDirective {
pub index: u32,
pub path: String,
pub timestamp: Option<u64>,
pub file_size: Option<u64>,
pub span: Span,
}Expand description
Structured representation of the .file directive.
Syntax: .file file_index “filename” {, timestamp, file_size}
Example: .file 1 “example.cu” .file 2 “kernel.cu” .file 1 “kernel.cu”, 1339013327, 64118
Fields§
§index: u32§path: String§timestamp: Option<u64>§file_size: Option<u64>§span: SpanImplementations§
Trait Implementations§
Source§impl Clone for FileDirective
impl Clone for FileDirective
Source§fn clone(&self) -> FileDirective
fn clone(&self) -> FileDirective
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 FileDirective
impl Debug for FileDirective
Source§impl PartialEq for FileDirective
impl PartialEq for FileDirective
Source§impl PtxParser for FileDirective
impl PtxParser for FileDirective
Source§fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
Returns a parser function that can parse an instance of
Self.Source§impl PtxUnparser for FileDirective
impl PtxUnparser for FileDirective
Source§impl Spanned for FileDirective
impl Spanned for FileDirective
Source§impl TreeDisplay for FileDirective
impl TreeDisplay for FileDirective
Source§fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> Result
fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> Result
Display this node in tree format. Read more
impl StructuralPartialEq for FileDirective
Auto Trait Implementations§
impl Freeze for FileDirective
impl RefUnwindSafe for FileDirective
impl Send for FileDirective
impl Sync for FileDirective
impl Unpin for FileDirective
impl UnwindSafe for FileDirective
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