Skip to main content

Remapper

Struct Remapper 

Source
pub struct Remapper { /* private fields */ }
Expand description

Rewrites a flat winmd into header-based namespaces for package generation.

Implementations§

Source§

impl Remapper

Source

pub fn new() -> Self

Source

pub fn input(&mut self, input: impl AsRef<Path>) -> &mut Self

Source

pub fn inputs<I, S>(&mut self, inputs: I) -> &mut Self
where I: IntoIterator<Item = S>, S: AsRef<Path>,

Source

pub fn source(&mut self, namespace: &str) -> &mut Self

Registers a namespace whose members are remapped.

Source

pub fn sources<I, S>(&mut self, namespaces: I) -> &mut Self
where I: IntoIterator<Item = S>, S: AsRef<str>,

Registers namespaces whose members are remapped.

Source

pub fn fallback(&mut self, namespace: &str) -> &mut Self

Source

pub fn route( &mut self, name: impl Into<String>, namespace: impl Into<String>, ) -> &mut Self

Source

pub fn routes<I, K, V>(&mut self, routes: I) -> &mut Self
where I: IntoIterator<Item = (K, V)>, K: Into<String>, V: Into<String>,

Source

pub fn output(&mut self, output: impl AsRef<Path>) -> &mut Self

Source

pub fn remap(&self) -> Result<(), Error>

Trait Implementations§

Source§

impl Default for Remapper

Source§

fn default() -> Remapper

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.