pub struct RenameAttr { /* private fields */ }Expand description
A pattern for use in rename attributes, like #[diplomat::abi_rename]
This can be parsed from a string, typically something like icu4x_{0}.
It can have up to one {0} for replacement.
In the future this may support transformations like to_camel_case, etc,
probably specified as a list like #[diplomat::abi_rename("foo{0}", to_camel_case)]
Implementations§
Trait Implementations§
Source§impl Clone for RenameAttr
impl Clone for RenameAttr
Source§fn clone(&self) -> RenameAttr
fn clone(&self) -> RenameAttr
Returns a duplicate 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 RenameAttr
impl Debug for RenameAttr
Source§impl Default for RenameAttr
impl Default for RenameAttr
Source§fn default() -> RenameAttr
fn default() -> RenameAttr
Returns the “default value” for a type. Read more
Source§impl Hash for RenameAttr
impl Hash for RenameAttr
Source§impl Ord for RenameAttr
impl Ord for RenameAttr
Source§fn cmp(&self, other: &RenameAttr) -> Ordering
fn cmp(&self, other: &RenameAttr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RenameAttr
impl PartialEq for RenameAttr
Source§impl PartialOrd for RenameAttr
impl PartialOrd for RenameAttr
Source§impl Serialize for RenameAttr
impl Serialize for RenameAttr
impl Eq for RenameAttr
impl StructuralPartialEq for RenameAttr
Auto Trait Implementations§
impl Freeze for RenameAttr
impl RefUnwindSafe for RenameAttr
impl Send for RenameAttr
impl Sync for RenameAttr
impl Unpin for RenameAttr
impl UnwindSafe for RenameAttr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes