Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 20 of 20) sorted by relevance

/rust/kernel/alloc/kvec/
A Derrors.rs5 use core::fmt::{self, Debug, Formatter};
12 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() method
29 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() method
49 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() method
/rust/kernel/
A Dstr.rs6 use crate::fmt::{self, Write};
53 impl fmt::Display for BStr {
67 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
83 impl fmt::Debug for BStr {
99 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
475 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
488 impl fmt::Debug for CStr {
506 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
856 Err(fmt::Error) in write_str()
960 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
[all …]
A Ddevice.rs11 use core::{fmt, marker::PhantomData, ptr};
174 pub fn pr_emerg(&self, args: fmt::Arguments<'_>) { in pr_emerg()
184 pub fn pr_alert(&self, args: fmt::Arguments<'_>) { in pr_alert()
194 pub fn pr_crit(&self, args: fmt::Arguments<'_>) { in pr_crit()
204 pub fn pr_err(&self, args: fmt::Arguments<'_>) { in pr_err()
214 pub fn pr_warn(&self, args: fmt::Arguments<'_>) { in pr_warn()
224 pub fn pr_notice(&self, args: fmt::Arguments<'_>) { in pr_notice()
234 pub fn pr_info(&self, args: fmt::Arguments<'_>) { in pr_info()
244 pub fn pr_dbg(&self, args: fmt::Arguments<'_>) { in pr_dbg()
258 unsafe fn printk(&self, klevel: &[u8], msg: fmt::Arguments<'_>) { in printk()
A Dprint.rs11 fmt,
24 use fmt::Write; in rust_fmt_argument()
28 let _ = w.write_fmt(unsafe { *ptr.cast::<fmt::Arguments<'_>>() }); in rust_fmt_argument()
103 args: fmt::Arguments<'_>,
124 pub fn call_printk_cont(args: fmt::Arguments<'_>) { in call_printk_cont()
152 match $crate::prelude::fmt!($($arg)+) {
171 $crate::prelude::fmt!($($arg)+),
A Derror.rs9 fmt,
184 impl fmt::Debug for Error {
185 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
223 impl From<fmt::Error> for Error {
224 fn from(_: fmt::Error) -> Error { in from()
A Dfmt.rs7 pub use core::fmt::{Arguments, Debug, Display, Error, Formatter, Result, Write};
A Dseq_file.rs34 pub fn call_printf(&self, args: core::fmt::Arguments<'_>) { in call_printf()
A Dkunit.rs10 use core::fmt;
19 pub fn err(args: fmt::Arguments<'_>) { in err()
35 pub fn info(args: fmt::Arguments<'_>) { in info()
A Dprelude.rs36 pub use core::format_args as fmt;
A Dlib.rs90 pub mod fmt; module
/rust/kernel/sync/
A Darc.rs30 fmt,
916 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
917 fmt::Display::fmt(self.deref(), f) in fmt()
921 impl<T: fmt::Display + ?Sized> fmt::Display for Arc<T> {
922 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
923 fmt::Display::fmt(self.deref(), f) in fmt()
928 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
929 fmt::Debug::fmt(self.deref(), f) in fmt()
933 impl<T: fmt::Debug + ?Sized> fmt::Debug for Arc<T> {
934 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
[all …]
/rust/kernel/alloc/
A Dkbox.rs10 use core::fmt;
564 impl<T, A> fmt::Display for Box<T, A>
566 T: ?Sized + fmt::Display,
569 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() function
570 <T as fmt::Display>::fmt(&**self, f) in fmt()
574 impl<T, A> fmt::Debug for Box<T, A>
576 T: ?Sized + fmt::Debug,
579 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() function
580 <T as fmt::Debug>::fmt(&**self, f) in fmt()
A Dkvec.rs12 fmt,
862 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> {
863 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
864 fmt::Debug::fmt(&**self, f) in fmt()
/rust/kernel/block/mq/
A Draw_writer.rs3 use core::fmt::{self, Write};
39 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
45 return Err(fmt::Error); in write_str()
A Dgen_disk.rs11 use core::fmt::{self, Write};
93 name: fmt::Arguments<'_>, in build()
/rust/kernel/device/
A Dproperty.rs76 pub fn display_name(&self) -> impl core::fmt::Display + '_ { in display_name()
79 impl core::fmt::Display for FwNodeDisplayName<'_> { in display_name()
80 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in display_name() method
354 impl core::fmt::Debug for FwNodeReferenceArgs {
355 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
380 impl core::fmt::Display for FwNode {
381 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
/rust/kernel/fs/
A Dfile.rs463 impl core::fmt::Debug for BadFdError {
464 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
/rust/macros/
A Dvtable.rs5 use std::fmt::Write;
A Dkunit.rs8 use std::fmt::Write;
A Dmodule.rs5 use std::fmt::Write;

Completed in 30 milliseconds