Struct bevy_macro_utils::BevyManifest
source · pub struct BevyManifest { /* private fields */ }
Implementations§
source§impl BevyManifest
impl BevyManifest
pub fn maybe_get_path(&self, name: &str) -> Option<Path>
sourcepub fn get_path_direct(name: &str) -> Path
pub fn get_path_direct(name: &str) -> Path
Returns the path for the crate with the given name.
This is a convenience method for constructing a manifest and
calling the get_path
method.
This method should only be used where you just need the path and can’t
cache the manifest. If caching is possible, it’s recommended to create
the manifest yourself and use the get_path
method.
pub fn get_path(&self, name: &str) -> Path
pub fn parse_str<T: Parse>(path: &str) -> T
pub fn get_subcrate(&self, subcrate: &str) -> Option<Path>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BevyManifest
impl Send for BevyManifest
impl Sync for BevyManifest
impl Unpin for BevyManifest
impl UnwindSafe for BevyManifest
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