pub struct Analyzer<'gcx> { /* private fields */ }Implementations§
Source§impl<'gcx> Analyzer<'gcx>
impl<'gcx> Analyzer<'gcx>
pub fn new(gcx: &'gcx GlobalCx<'gcx>) -> Self
pub fn get_global_context(&self) -> &GlobalCx<'gcx>
pub fn add_virtual_file<P, C>(&mut self, path: P, code: C) -> Option<Arc<str>>
pub fn add_virtual_item<P: Into<PathBuf>>( &mut self, path: P, item: &Item, ) -> Option<Arc<str>>
pub fn set_known_library<N, P>(&mut self, name: N, path: P) -> Result<()>
pub fn analyze(self, entry: impl AsRef<StdPath>) -> Result<Semantics<'gcx>>
Auto Trait Implementations§
impl<'gcx> !Freeze for Analyzer<'gcx>
impl<'gcx> !RefUnwindSafe for Analyzer<'gcx>
impl<'gcx> !Send for Analyzer<'gcx>
impl<'gcx> !Sync for Analyzer<'gcx>
impl<'gcx> Unpin for Analyzer<'gcx>
impl<'gcx> UnsafeUnpin for Analyzer<'gcx>
impl<'gcx> !UnwindSafe for Analyzer<'gcx>
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