Struct mica::ll::error::RenderedSignature
source · pub struct RenderedSignature {
pub name: Rc<str>,
pub parameter_count: u8,
pub trait_name: Option<Rc<str>>,
}
Expand description
A MethodSignature
that can be rendered into text. One
can be obtained by calling
MethodSignature::render
.
Fields§
§name: Rc<str>
§parameter_count: u8
This arity number does not include the implicit self
argument.
trait_name: Option<Rc<str>>
The index of the trait this signature belongs to.
When None
, the function is free and does not belong to any trait.
Implementations§
source§impl RenderedSignature
impl RenderedSignature
sourcepub const INVALID_NAME: &'static str = ""
pub const INVALID_NAME: &'static str = ""
The empty string name is considered to be the invalid name, and will result in different
Display
.
pub fn invalid() -> Self
pub fn is_invalid(&self) -> bool
Trait Implementations§
source§impl Clone for RenderedSignature
impl Clone for RenderedSignature
source§fn clone(&self) -> RenderedSignature
fn clone(&self) -> RenderedSignature
Returns a copy 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 RenderedSignature
impl Debug for RenderedSignature
source§impl Display for RenderedSignature
impl Display for RenderedSignature
source§impl Hash for RenderedSignature
impl Hash for RenderedSignature
source§impl PartialEq<RenderedSignature> for RenderedSignature
impl PartialEq<RenderedSignature> for RenderedSignature
source§fn eq(&self, other: &RenderedSignature) -> bool
fn eq(&self, other: &RenderedSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.