pub struct FeatureApi { /* private fields */ }Expand description
Access struct for the Feature API.
Implementations§
Source§impl FeatureApi
impl FeatureApi
Sourcepub fn find<S: Into<String>>(
&mut self,
name: S,
) -> Result<Option<Feature>, NulError>
pub fn find<S: Into<String>>( &mut self, name: S, ) -> Result<Option<Feature>, NulError>
Looks for a feature with the provided name and returns it if it exists
§Errors
This function will return an error if name contains a NUL byte.
§Panics
This function can panic if name, which came in as a String-like, then was turned into a CString,
cannot be turned back into a String. This should not be possible.
Auto Trait Implementations§
impl !Send for FeatureApi
impl !Sync for FeatureApi
impl Freeze for FeatureApi
impl RefUnwindSafe for FeatureApi
impl Unpin for FeatureApi
impl UnsafeUnpin for FeatureApi
impl UnwindSafe for FeatureApi
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