Struct mwtitle::InterwikiSet
source · [−]pub struct InterwikiSet(_);
Expand description
A case-insensitive set for interwikis.
Implementations
sourceimpl InterwikiSet
impl InterwikiSet
sourcepub fn all_and_local_from_iter<I: IntoIterator<Item = Interwiki>>(
iter: I
) -> (Self, Self)
pub fn all_and_local_from_iter<I: IntoIterator<Item = Interwiki>>(
iter: I
) -> (Self, Self)
Given an iterator of Interwiki
s, returns an InterwikiSet
of all interwikis, and an InterwikiSet
of local interwikis
(where local_interwiki == true
).
Trait Implementations
sourceimpl Clone for InterwikiSet
impl Clone for InterwikiSet
sourcefn clone(&self) -> InterwikiSet
fn clone(&self) -> InterwikiSet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InterwikiSet
impl Debug for InterwikiSet
sourceimpl FromIterator<String> for InterwikiSet
impl FromIterator<String> for InterwikiSet
This implementation makes it possible to construct an InterwikiSet
even though its item type NamespaceMap
is private.
sourcefn from_iter<T: IntoIterator<Item = String>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = String>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl PartialEq<InterwikiSet> for InterwikiSet
impl PartialEq<InterwikiSet> for InterwikiSet
sourcefn eq(&self, other: &InterwikiSet) -> bool
fn eq(&self, other: &InterwikiSet) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InterwikiSet) -> bool
fn ne(&self, other: &InterwikiSet) -> bool
This method tests for !=
.
impl Eq for InterwikiSet
impl StructuralEq for InterwikiSet
impl StructuralPartialEq for InterwikiSet
Auto Trait Implementations
impl RefUnwindSafe for InterwikiSet
impl Send for InterwikiSet
impl Sync for InterwikiSet
impl Unpin for InterwikiSet
impl UnwindSafe for InterwikiSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more