pub(crate) struct FileMeta {
pub(crate) path: String,
pub(crate) krate: Option<(String, CrateOrigin, Option<String>)>,
pub(crate) deps: Vec<String>,
pub(crate) extern_prelude: Option<Vec<String>>,
pub(crate) cfg: CfgOptions,
pub(crate) edition: Edition,
pub(crate) env: Env,
pub(crate) crate_attrs: Vec<String>,
pub(crate) introduce_new_source_root: Option<SourceRootKind>,
}Fields§
§path: String§krate: Option<(String, CrateOrigin, Option<String>)>§deps: Vec<String>§extern_prelude: Option<Vec<String>>§cfg: CfgOptions§edition: Edition§env: Env§crate_attrs: Vec<String>§introduce_new_source_root: Option<SourceRootKind>Implementations§
Source§impl FileMeta
impl FileMeta
pub(crate) fn from_fixture( f: Fixture, current_source_root_kind: SourceRootKind, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileMeta
impl RefUnwindSafe for FileMeta
impl Send for FileMeta
impl Sync for FileMeta
impl Unpin for FileMeta
impl UnwindSafe for FileMeta
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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