Struct wints::core::module::WintsModule
source · pub struct WintsModule {
pub version: u8,
/* private fields */
}
Fields§
§version: u8
Implementations§
source§impl WintsModule
impl WintsModule
pub fn empty_module() -> WintsModule
pub fn default_module() -> WintsModule
pub fn contextualise_urls( module: &mut WintsModule, context: String, urls: Vec<String> )
pub fn list_of_all_contexts(&self) -> Vec<String>
pub fn list_of_all_urls(&self) -> Vec<String>
pub fn list_of_urls_from_matching_context( &self, context: Vec<String> ) -> Vec<String>
pub fn nearest_matching_context(&self, context: Vec<String>) -> Option<String>
Trait Implementations§
source§impl Clone for WintsModule
impl Clone for WintsModule
source§fn clone(&self) -> WintsModule
fn clone(&self) -> WintsModule
Returns a copy 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 WintsModule
impl Debug for WintsModule
source§impl<'de> Deserialize<'de> for WintsModule
impl<'de> Deserialize<'de> for WintsModule
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for WintsModule
impl PartialEq for WintsModule
source§fn eq(&self, other: &WintsModule) -> bool
fn eq(&self, other: &WintsModule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WintsModule
impl Serialize for WintsModule
impl StructuralPartialEq for WintsModule
Auto Trait Implementations§
impl RefUnwindSafe for WintsModule
impl Send for WintsModule
impl Sync for WintsModule
impl Unpin for WintsModule
impl UnwindSafe for WintsModule
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