pub struct BevyManifest { /* private fields */ }
Expand description
The path to the Cargo.toml
file for the Bevy project.
Implementations§
Source§impl BevyManifest
impl BevyManifest
Sourcepub fn maybe_get_path(&self, name: &str) -> Option<Path>
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.
Sourcepub fn try_parse_str<T: Parse>(path: &str) -> Option<T>
pub fn try_parse_str<T: Parse>(path: &str) -> Option<T>
Attempt to parse the provided path as a syntax tree node
Sourcepub fn parse_str<T: Parse>(path: &str) -> T
pub fn parse_str<T: Parse>(path: &str) -> T
Attempt to parse provided path as a syntax tree node.
§Panics
Will panic if the path is not able to be parsed. For a non-panicking option, see try_parse_str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BevyManifest
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