pub struct Namespace { /* private fields */ }Implementations§
Source§impl Namespace
impl Namespace
pub const AIDL: &'static str = "."
pub const RUST: &'static str = "::"
pub fn new(namespace: &str, style: &str) -> Self
pub fn push(&mut self, name: &str)
pub fn push_ns(&mut self, ns: &Namespace)
pub fn pop(&mut self) -> Option<String>
pub fn to_string(&self, style: &str) -> String
pub fn relative_mod(&self, target: &Namespace) -> String
Trait Implementations§
impl Eq for Namespace
impl StructuralPartialEq for Namespace
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnwindSafe for Namespace
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