Skip to main content

FileData

Struct FileData 

Source
pub struct FileData {
Show 18 fields pub miniextendr_items: Vec<LintItem>, pub types_with_external_ptr: HashSet<String>, pub types_with_typed_external: HashSet<String>, pub inherent_impl_class_systems: HashMap<String, (String, usize)>, pub attributed_trait_impls: Vec<AttributedTraitImpl>, pub impl_blocks_per_type: HashMap<String, Vec<(Option<String>, usize)>>, pub fn_visibility: HashMap<String, bool>, pub declared_child_mods: Vec<String>, pub path_redirected_mods: Vec<(String, String)>, pub mod_decl_cfgs: HashMap<String, Vec<String>>, pub export_control: HashMap<String, (bool, bool, usize)>, pub impl_methods: HashMap<String, Vec<ImplMethodEntry>>, pub fn_doc_tags: HashMap<String, Vec<String>>, pub rf_error_calls: Vec<(String, usize)>, pub ffi_unchecked_calls: Vec<(String, usize)>, pub fn_param_names: HashMap<String, Vec<(String, usize)>>, pub lifetime_param_items: Vec<(String, usize)>, pub interleaved_doc_attrs: Vec<(String, usize)>,
}

Fields§

§miniextendr_items: Vec<LintItem>§types_with_external_ptr: HashSet<String>§types_with_typed_external: HashSet<String>§inherent_impl_class_systems: HashMap<String, (String, usize)>§attributed_trait_impls: Vec<AttributedTraitImpl>§impl_blocks_per_type: HashMap<String, Vec<(Option<String>, usize)>>§fn_visibility: HashMap<String, bool>§declared_child_mods: Vec<String>

Simple mod child; declarations (by ident name).

§path_redirected_mods: Vec<(String, String)>

#[path = "file.rs"] mod name; declarations: (mod_name, file_path_str).

§mod_decl_cfgs: HashMap<String, Vec<String>>

cfg attrs on mod child; declarations: mod_name -> cfg strings.

§export_control: HashMap<String, (bool, bool, usize)>

(has_internal, has_noexport, line)

§impl_methods: HashMap<String, Vec<ImplMethodEntry>>

Methods per inherent impl type: type_name → Vec.

§fn_doc_tags: HashMap<String, Vec<String>>

Known roxygen tags: “@noRd”, “@export”, “@keywords internal”

§rf_error_calls: Vec<(String, usize)>

Lines containing direct Rf_error/Rf_errorcall calls: (function_name, line_number).

§ffi_unchecked_calls: Vec<(String, usize)>

Lines containing ffi::*_unchecked() calls: (function_name, line_number).

§fn_param_names: HashMap<String, Vec<(String, usize)>>

Maps fn/method name → list of (param_name, line) for params that are R reserved words. Key for free functions is the function name; for impl methods it is "TypeName::method_name".

§lifetime_param_items: Vec<(String, usize)>

#[miniextendr] functions or impl blocks that carry explicit lifetime params. Each entry is (name, line) where name is the function or type name.

§interleaved_doc_attrs: Vec<(String, usize)>

#[miniextendr] items where a non-doc attribute interrupts a doc-comment stream. Each entry is (item_name, line_of_interrupting_attr).

Trait Implementations§

Source§

impl Debug for FileData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FileData

Source§

fn default() -> FileData

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> SizedTypeProperties for T

Source§

#[doc(hidden)]
const SIZE: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)]
const ALIGN: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)]
const ALIGNMENT: Alignment = _

🔬This is a nightly-only experimental API. (ptr_alignment_type)
Source§

#[doc(hidden)]
const IS_ZST: bool = _

🔬This is a nightly-only experimental API. (sized_type_properties)
true if this type requires no storage. false if its size is greater than zero. Read more
Source§

#[doc(hidden)]
const LAYOUT: Layout = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)]
const MAX_SLICE_LEN: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
The largest safe length for a [Self]. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 672 bytes