pub(crate) struct EncodedSourceFileId {
pub(crate) stable_source_file_id: StableSourceFileId,
pub(crate) stable_crate_id: StableCrateId,
}
Expand description
From CREUSOT: used to store the info about source files
An EncodedSourceFileId
is the same as a StableSourceFileId
except that
the source crate is represented as a StableCrateId instead of as a
CrateNum
. This way EncodedSourceFileId
can be encoded and decoded
without any additional context, i.e. with a simple opaque::Decoder
(which
is the only thing available when decoding the Footer.
Fields§
§stable_source_file_id: StableSourceFileId
§stable_crate_id: StableCrateId
Implementations§
Source§impl EncodedSourceFileId
impl EncodedSourceFileId
pub(crate) fn new(tcx: TyCtxt<'_>, file: &SourceFile) -> EncodedSourceFileId
Trait Implementations§
Source§impl Clone for EncodedSourceFileId
impl Clone for EncodedSourceFileId
Source§fn clone(&self) -> EncodedSourceFileId
fn clone(&self) -> EncodedSourceFileId
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 EncodedSourceFileId
impl Debug for EncodedSourceFileId
Source§impl<__D: SpanDecoder> Decodable<__D> for EncodedSourceFileId
impl<__D: SpanDecoder> Decodable<__D> for EncodedSourceFileId
Source§impl<__E: SpanEncoder> Encodable<__E> for EncodedSourceFileId
impl<__E: SpanEncoder> Encodable<__E> for EncodedSourceFileId
Auto Trait Implementations§
impl Freeze for EncodedSourceFileId
impl RefUnwindSafe for EncodedSourceFileId
impl Send for EncodedSourceFileId
impl Sync for EncodedSourceFileId
impl Unpin for EncodedSourceFileId
impl UnwindSafe for EncodedSourceFileId
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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