pub enum Child {
Static {
child: &'static Signature,
},
Dynamic {
child: Box<Signature>,
},
}
Expand description
A child signature of a container signature.
Variants§
Implementations§
Methods from Deref<Target = Signature>§
Sourcepub fn string_len(&self) -> usize
pub fn string_len(&self) -> usize
The size of the string form of self
.
Sourcepub fn write_as_string_no_parens(&self, write: &mut impl Write) -> Result
pub fn write_as_string_no_parens(&self, write: &mut impl Write) -> Result
Write the string form of self
to the given formatter.
This produces the same output as the Display::fmt
, unless self
is a
Signature::Structure
, in which case the written string will not be wrapped in
parenthesis (()
).
Sourcepub fn to_string_no_parens(&self) -> String
pub fn to_string_no_parens(&self) -> String
Convert self
to a string, without any enclosing parenthesis.
This produces the same output as the Signature::to_string
, unless self
is a
Signature::Structure
, in which case the written string will not be wrapped in
parenthesis (()
).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Child
impl RefUnwindSafe for Child
impl Send for Child
impl Sync for Child
impl Unpin for Child
impl UnwindSafe for Child
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