pub struct MacroString {
pub segments: Vec<MacroStringSegment>,
}
Expand description
A macro string.
Fields§
§segments: Vec<MacroStringSegment>
The macro string’s parts.
Trait Implementations§
Source§impl AsRef<MacroString> for DomainSpec
impl AsRef<MacroString> for DomainSpec
Source§fn as_ref(&self) -> &MacroString
fn as_ref(&self) -> &MacroString
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for MacroString
impl Clone for MacroString
Source§fn clone(&self) -> MacroString
fn clone(&self) -> MacroString
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 MacroString
impl Debug for MacroString
Source§impl Default for MacroString
impl Default for MacroString
Source§fn default() -> MacroString
fn default() -> MacroString
Returns the “default value” for a type. Read more
Source§impl Display for MacroString
impl Display for MacroString
Source§impl From<DomainSpec> for MacroString
impl From<DomainSpec> for MacroString
Source§fn from(domain_spec: DomainSpec) -> Self
fn from(domain_spec: DomainSpec) -> Self
Converts to this type from the input type.
Source§impl From<MacroString> for ExplainStringSegment
impl From<MacroString> for ExplainStringSegment
Source§fn from(macro_string: MacroString) -> Self
fn from(macro_string: MacroString) -> Self
Converts to this type from the input type.
Source§impl From<Vec<MacroStringSegment>> for MacroString
impl From<Vec<MacroStringSegment>> for MacroString
Source§fn from(segments: Vec<MacroStringSegment>) -> Self
fn from(segments: Vec<MacroStringSegment>) -> Self
Converts to this type from the input type.
Source§impl FromIterator<MacroStringSegment> for MacroString
impl FromIterator<MacroStringSegment> for MacroString
Source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = MacroStringSegment>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = MacroStringSegment>,
Creates a value from an iterator. Read more
Source§impl FromStr for MacroString
impl FromStr for MacroString
Source§impl Hash for MacroString
impl Hash for MacroString
Source§impl IntoIterator for MacroString
impl IntoIterator for MacroString
Source§impl PartialEq for MacroString
impl PartialEq for MacroString
impl Eq for MacroString
impl StructuralPartialEq for MacroString
Auto Trait Implementations§
impl Freeze for MacroString
impl RefUnwindSafe for MacroString
impl Send for MacroString
impl Sync for MacroString
impl Unpin for MacroString
impl UnwindSafe for MacroString
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