pub(crate) struct FnDecl {
pub(crate) inputs: Arguments,
pub(crate) output: Type,
pub(crate) c_variadic: bool,
}
Fields§
§inputs: Arguments
§output: Type
§c_variadic: bool
Implementations§
Source§impl FnDecl
impl FnDecl
pub(crate) fn print<'b, 'a: 'b, 'tcx: 'a>( &'a self, cx: &'a Context<'tcx>, ) -> impl Display + 'b + Captures<'tcx>
Sourcepub(crate) fn full_print<'a, 'tcx: 'a>(
&'a self,
header_len: usize,
indent: usize,
cx: &'a Context<'tcx>,
) -> impl Display + 'a + Captures<'tcx>
pub(crate) fn full_print<'a, 'tcx: 'a>( &'a self, header_len: usize, indent: usize, cx: &'a Context<'tcx>, ) -> impl Display + 'a + Captures<'tcx>
header_len
: The length of the function header and name. In other words, the number of characters in the function declaration up to but not including the parentheses. This is expected to go into a<pre>
/code-header
block, so indentation and newlines are preserved.indent
: The number of spaces to indent each successive line with, if line-wrapping is necessary.
fn inner_full_print( &self, line_wrapping_indent: Option<usize>, f: &mut Formatter<'_>, cx: &Context<'_>, ) -> Result
fn print_output<'a, 'tcx: 'a>( &'a self, cx: &'a Context<'tcx>, ) -> impl Display + 'a + Captures<'tcx>
Trait Implementations§
Source§impl FromClean<FnDecl> for FunctionSignature
impl FromClean<FnDecl> for FunctionSignature
fn from_clean(decl: FnDecl, renderer: &JsonRenderer<'_>) -> Self
impl Eq for FnDecl
impl StructuralPartialEq for FnDecl
Auto Trait Implementations§
impl Freeze for FnDecl
impl RefUnwindSafe for FnDecl
impl Send for FnDecl
impl Sync for FnDecl
impl Unpin for FnDecl
impl UnwindSafe for FnDecl
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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 moreSource§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes