pub struct Signature {
pub kind: &'static str,
pub name: String,
pub params: String,
pub return_type: String,
pub is_async: bool,
pub is_exported: bool,
pub indent: usize,
pub start_line: Option<usize>,
pub end_line: Option<usize>,
}Fields§
§kind: &'static str§name: String§params: String§return_type: String§is_async: bool§is_exported: bool§indent: usize§start_line: Option<usize>§end_line: Option<usize>Implementations§
Source§impl Signature
impl Signature
pub fn no_span() -> Self
pub fn to_compact(&self) -> String
pub fn to_tdd(&self) -> String
Sourcepub fn line_suffix(&self) -> String
pub fn line_suffix(&self) -> String
Compact @Lstart[-end] suffix for navigation-focused modes.
Returns an empty string when the span is unknown, so compression-first
modes that render the base to_compact/to_tdd stay byte-identical.
Sourcepub fn to_compact_located(&self) -> String
pub fn to_compact_located(&self) -> String
to_compact plus a line-span suffix. Reserved for navigation modes
(map/signatures) where locating code outweighs the few extra tokens.
Sourcepub fn to_tdd_located(&self) -> String
pub fn to_tdd_located(&self) -> String
to_tdd plus a line-span suffix. Reserved for navigation modes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more