[−][src]Struct langtag::LanguageExtensionMut
Mutable reference to extended language subtags.
Implementations
impl<'a> LanguageExtensionMut<'a>
[src]
pub fn as_ref(&self) -> &LanguageExtension
[src]
Return a non-mutable reference to the extended language subtags.
pub fn is_empty(&self) -> bool
[src]
Checks if no extended language subtags are defined.
pub fn is_full(&self) -> bool
[src]
Checks if no more extended language subtags can be inserted.
pub fn contains<T: AsRef<[u8]> + ?Sized>(&self, subtag: &T) -> bool
[src]
Checks if the given subtag is present.
pub fn insert(&mut self, subtag: &ExtendedLangTag) -> bool
[src]
Insert a new subtag if it there is room for it and is not already present.
Return true
if the subtag has been inserted,
and false
if the subtag was already present or
if there already are 3 extended language subtags.
pub fn remove<T: AsRef<[u8]> + ?Sized>(&mut self, subtag: &T) -> bool
[src]
Remove all occurences of the given subtag.
Return true
if the subtag was present and false
otherwise.
Auto Trait Implementations
impl<'a> RefUnwindSafe for LanguageExtensionMut<'a>
[src]
impl<'a> Send for LanguageExtensionMut<'a>
[src]
impl<'a> Sync for LanguageExtensionMut<'a>
[src]
impl<'a> Unpin for LanguageExtensionMut<'a>
[src]
impl<'a> !UnwindSafe for LanguageExtensionMut<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,