pub struct ParsedData {
pub structs: Vec<RustStruct>,
pub enums: Vec<RustEnum>,
pub aliases: Vec<RustTypeAlias>,
pub consts: Vec<RustConst>,
pub import_types: HashSet<ImportedType>,
}Expand description
The results of parsing Rust source input.
Fields§
§structs: Vec<RustStruct>Structs defined in the source
enums: Vec<RustEnum>Enums defined in the source
aliases: Vec<RustTypeAlias>Type aliases defined in the source
consts: Vec<RustConst>Constant variables defined in the source
import_types: HashSet<ImportedType>Imports used by this file TODO: This is currently almost empty. Import computation was found to be pretty broken during the migration to Typeshare 2, so that part of multi-file output was stripped out to be restored later.
Implementations§
Source§impl ParsedData
impl ParsedData
Trait Implementations§
Source§impl Debug for ParsedData
impl Debug for ParsedData
Source§impl Default for ParsedData
impl Default for ParsedData
Source§fn default() -> ParsedData
fn default() -> ParsedData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParsedData
impl RefUnwindSafe for ParsedData
impl Send for ParsedData
impl Sync for ParsedData
impl Unpin for ParsedData
impl UnwindSafe for ParsedData
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more