[−][src]Struct rustc_metadata::rmeta::decoder::MetadataBlob
Implementations
impl MetadataBlob[src]
pub(crate) fn new(metadata_ref: MetadataRef) -> MetadataBlob[src]
pub(crate) fn is_compatible(&self) -> bool[src]
pub(crate) fn get_rustc_version(&self) -> String[src]
pub(crate) fn get_root<'tcx>(&self) -> CrateRoot<'tcx>[src]
pub(crate) fn list_crate_metadata(&self, out: &mut dyn Write) -> Result<()>[src]
Trait Implementations
impl<'a, 'tcx> Metadata<'a, 'tcx> for &'a MetadataBlob[src]
pub(in rmeta) fn raw_bytes(
self
) -> &'a [u8][src]
self
) -> &'a [u8]
pub(in rmeta) fn cdata(
self
) -> Option<CrateMetadataRef<'a>>[src]
self
) -> Option<CrateMetadataRef<'a>>
pub(in rmeta) fn sess(
self
) -> Option<&'tcx Session>[src]
self
) -> Option<&'tcx Session>
pub(in rmeta) fn tcx(
self
) -> Option<TyCtxt<'tcx>>[src]
self
) -> Option<TyCtxt<'tcx>>
pub(in rmeta) fn decoder(
self,
pos: usize
) -> DecodeContext<'a, 'tcx>[src]
self,
pos: usize
) -> DecodeContext<'a, 'tcx>
Auto Trait Implementations
impl !RefUnwindSafe for MetadataBlob
impl !Send for MetadataBlob
impl !Sync for MetadataBlob
impl Unpin for MetadataBlob
impl !UnwindSafe for MetadataBlob
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,