#[repr(C)]pub struct LaunchRemap {
pub node_name: *const c_char,
pub namespace: *const c_char,
pub from: *const c_char,
pub to: *const c_char,
}Expand description
One launch remap rule, in the shape the generated C/C++ entry emits:
four NUL-terminated strings in .rodata.
#[repr(C)] so the C table (nros_cpp_launch_remap_t) is this struct.
namespace NULL or empty means the root namespace, as declare_remap
read it.
Fields§
§node_name: *const c_charThe owning node’s name.
namespace: *const c_charThe owning node’s namespace (/ for root; NULL or empty also root).
from: *const c_charThe name as written in the source (raw; expanded at lookup).
to: *const c_charThe replacement (raw; expanded at lookup).
Implementations§
Trait Implementations§
Source§impl Clone for LaunchRemap
impl Clone for LaunchRemap
Source§fn clone(&self) -> LaunchRemap
fn clone(&self) -> LaunchRemap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LaunchRemap
Source§impl Debug for LaunchRemap
impl Debug for LaunchRemap
impl Send for LaunchRemap
impl Sync for LaunchRemap
Auto Trait Implementations§
impl Freeze for LaunchRemap
impl RefUnwindSafe for LaunchRemap
impl Unpin for LaunchRemap
impl UnsafeUnpin for LaunchRemap
impl UnwindSafe for LaunchRemap
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