pub struct ExtensionSet { /* private fields */ }
Implementations§
Source§impl ExtensionSet
impl ExtensionSet
pub fn new() -> Self
pub fn iter(&self) -> impl Iterator<Item = &str>
pub fn get<T: Extension>(&self, ext: &T) -> Result<Option<T::Value>, Error>
pub fn get_string<'s>(&'s self, code: &str) -> Option<&'s str>
pub fn is_enabled<T: Extension>(&self, ext: &T) -> bool
pub fn is_enabled_code(&self, code: &str) -> bool
pub fn enable<T: ExtensionValue>(&mut self, ext: &T) -> bool
pub fn enable_string(&mut self, code: &str, ext: &str) -> bool
pub fn disable<T: Extension>(&mut self, ext: &T) -> bool
pub fn disable_code(&mut self, code: &str) -> bool
Trait Implementations§
Source§impl Clone for ExtensionSet
impl Clone for ExtensionSet
Source§fn clone(&self) -> ExtensionSet
fn clone(&self) -> ExtensionSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExtensionSet
impl Debug for ExtensionSet
Source§impl Default for ExtensionSet
impl Default for ExtensionSet
Source§fn default() -> ExtensionSet
fn default() -> ExtensionSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExtensionSet
impl PartialEq for ExtensionSet
impl Eq for ExtensionSet
impl StructuralPartialEq for ExtensionSet
Auto Trait Implementations§
impl Freeze for ExtensionSet
impl RefUnwindSafe for ExtensionSet
impl Send for ExtensionSet
impl Sync for ExtensionSet
impl Unpin for ExtensionSet
impl UnwindSafe for ExtensionSet
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