pub struct Remapper { /* private fields */ }Expand description
Rewrites a flat winmd into header-based namespaces for package generation.
Implementations§
Source§impl Remapper
impl Remapper
pub fn new() -> Self
pub fn input(&mut self, input: impl AsRef<Path>) -> &mut Self
pub fn inputs<I, S>(&mut self, inputs: I) -> &mut Self
Sourcepub fn source(&mut self, namespace: &str) -> &mut Self
pub fn source(&mut self, namespace: &str) -> &mut Self
Registers a namespace whose members are remapped.
Sourcepub fn sources<I, S>(&mut self, namespaces: I) -> &mut Self
pub fn sources<I, S>(&mut self, namespaces: I) -> &mut Self
Registers namespaces whose members are remapped.
pub fn fallback(&mut self, namespace: &str) -> &mut Self
pub fn route( &mut self, name: impl Into<String>, namespace: impl Into<String>, ) -> &mut Self
pub fn routes<I, K, V>(&mut self, routes: I) -> &mut Self
pub fn output(&mut self, output: impl AsRef<Path>) -> &mut Self
pub fn remap(&self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Remapper
impl RefUnwindSafe for Remapper
impl Send for Remapper
impl Sync for Remapper
impl Unpin for Remapper
impl UnsafeUnpin for Remapper
impl UnwindSafe for Remapper
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