Skip to main content

FileData

Struct FileData 

Source
pub struct FileData {
Show 17 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 vec_into_sexp_calls: Vec<(String, usize)>, pub fn_param_names: HashMap<String, 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<ImplMethodEntry>.

§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).

§vec_into_sexp_calls: Vec<(String, usize)>

into_sexp() / into_sexp_unchecked() calls that appear inside a vec!/array literal: (call_name, line_number). This is the use-after-free idiom — each later into_sexp allocates and can GC an earlier, still-unprotected element of the same literal. (MXL302)

§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".

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> SizeHint for T
where T: ?Sized,

Source§

default fn lower_bound(&self) -> usize

🔬This is a nightly-only experimental API. (core_io_internals)
Returns a lower bound on the number of elements this container-like item contains. For example, an array [u8; 12] could return any value between 0 and 12 inclusively as a correct implementation. Read more
Source§

default fn upper_bound(&self) -> Option<usize>

🔬This is a nightly-only experimental API. (core_io_internals)
Returns an upper bound on the number of elements this container-like item contains if it can be determined, otherwise None. Read more
Source§

final fn size_hint(&self) -> (usize, Option<usize>)

🔬This is a nightly-only experimental API. (core_io_internals)
Returns an estimate for the number of elements this container like type contains. Read more
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: 648 bytes