pub struct CrateData<R> { /* private fields */ }Expand description
High level interface to binary data.
Implementations§
Trait Implementations§
Source§impl<R> AbstractData for CrateData<R>
impl<R> AbstractData for CrateData<R>
Source§fn has_spec(&self, path: &Path) -> bool
fn has_spec(&self, path: &Path) -> bool
Returns
true if this data has a spec for the given path.Source§fn has_field(&self, path: &Path, field: &str) -> bool
fn has_field(&self, path: &Path, field: &str) -> bool
Returns
true if this data has a field for the given path.Source§fn spec_type(&self, path: &Path) -> Option<SpecType>
fn spec_type(&self, path: &Path) -> Option<SpecType>
Returns the type of the spec at the given path.
Auto Trait Implementations§
impl<R> Freeze for CrateData<R>where
R: Freeze,
impl<R> RefUnwindSafe for CrateData<R>where
R: RefUnwindSafe,
impl<R> Send for CrateData<R>where
R: Send,
impl<R> Sync for CrateData<R>where
R: Sync,
impl<R> Unpin for CrateData<R>where
R: Unpin,
impl<R> UnwindSafe for CrateData<R>where
R: UnwindSafe,
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