pub struct RenderedSignature {
pub name: Rc<str>,
pub arity: Option<u16>,
pub trait_name: Option<Rc<str>>,
}Expand description
A FunctionSignature that can be rendered into text. One
can be obtained by calling
FunctionSignature::render.
Fields§
§name: Rc<str>§arity: Option<u16>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 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 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 for RenderedSignature
impl PartialEq for RenderedSignature
impl Eq for RenderedSignature
impl StructuralPartialEq for RenderedSignature
Auto Trait Implementations§
impl Freeze for RenderedSignature
impl RefUnwindSafe for RenderedSignature
impl !Send for RenderedSignature
impl !Sync for RenderedSignature
impl Unpin for RenderedSignature
impl UnwindSafe for RenderedSignature
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