Rust-for-Arduboy/docs/doc/arduboy_rust/prelude/trait.Printable.html

11 lines
18 KiB
HTML
Raw Normal View History

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Printable` trait in crate `arduboy_rust`."><title>Printable in arduboy_rust::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="arduboy_rust" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0-nightly (8131b9774 2023-08-02)" data-channel="nightly" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-6d2c9675f3d09c26.css" data-theme-dark-css="dark-45ceb8f2e522f4d1.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../static.files/light-6d2c9675f3d09c26.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../static.files/dark-45ceb8f2e522f4d1.css"><link rel="stylesheet" href="../../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="logo-container" href="../../arduboy_rust/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../arduboy_rust/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Printable</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Parameters">Parameters</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.default_parameters">default_parameters</a></li><li><a href="#tymethod.print_2">print_2</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.print">print</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Printable-for-%26%5Bu8%5D">&amp;[u8]</a></li><li><a href="#impl-Printable-for-%26str">&amp;str</a></li><li><a href="#impl-Printable-for-i16">i16</a></li><li><a href="#impl-P
Self: Sized,</span>{
type <a href="#associatedtype.Parameters" class="associatedtype">Parameters</a>;
// Required methods
fn <a href="#tymethod.print_2" class="fn">print_2</a>(self, params: Self::<a class="associatedtype" href="trait.Printable.html#associatedtype.Parameters" title="type arduboy_rust::prelude::Printable::Parameters">Parameters</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.default_parameters" class="fn">default_parameters</a>() -&gt; Self::<a class="associatedtype" href="trait.Printable.html#associatedtype.Parameters" title="type arduboy_rust::prelude::Printable::Parameters">Parameters</a>;
// Provided method
fn <a href="#method.print" class="fn">print</a>(self) { ... }
}</code></pre><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><section id="associatedtype.Parameters" class="method"><a class="src rightside" href="../../src/arduboy_rust/print.rs.html#16">source</a><h4 class="code-header">type <a href="#associatedtype.Parameters" class="associatedtype">Parameters</a></h4></section></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.print_2" class="method"><a class="src rightside" href="../../src/arduboy_rust/print.rs.html#18">source</a><h4 class="code-header">fn <a href="#tymethod.print_2" class="fn">print_2</a>(self, params: Self::<a class="associatedtype" href="trait.Printable.html#associatedtype.Parameters" title="type arduboy_rust::prelude::Printable::Parameters">Parameters</a>)</h4></section><section id="tymethod.default_parameters" class="method"><a class="src rightside" href="../../src/arduboy_rust/print.rs.html#19">source</a><h4 class="code-header">fn <a href="#tymethod.default_parameters" class="fn">default_parameters</a>() -&gt; Self::<a class="associatedtype" href="trait.Printable.html#associatedtype.Parameters" title="type arduboy_rust::prelude::Printable::Parameters">Parameters</a></h4></section></div><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.print" class="method"><a class="src rightside" href="../../src/arduboy_rust/print.rs.html#21-23">source</a><h4 class="code-header">fn <a href="#method.print" class="fn">print</a>(self)</h4></section></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Printable-for-i32" class="impl"><a class="src rightside" href="../../src/arduboy_rust/print.rs.html#54-66">source</a><a href="#impl-Printable-for-i32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Printable.html" title="trait arduboy_rust::prelude::Printable">Printable</a> for i32</h3></section></summary><div class="impl-items"><section id="associatedtype.Parameters-1" class="associatedtype trait-impl"><a href="#associatedtype.Parameters-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Parameters" class="associatedtype">Parameters</a> = <a class="enum" href="enum.Base.html" title="enum arduboy_rust::prelude::Base">Base</a></h4></section><section id="method.print_2" class="method trait-impl"><a class="src rightside" href="../../src/arduboy_rust/print.rs.html#57-61">source</a><a href="#method.print_2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.print_2" class="fn">print_2</a>(self, params: Self::<a class="associatedtype" href="trait.Printable.html#associatedtype.Parameters" title="type arduboy_rust::prelude::Printable::Parameters">Parameters</a>)</h4></section><section id="method.default_parameters" class="method trait-impl"><a class="src rightside" href="../../src/arduboy_rust/print.rs.html#63-65">source</a><a href="#method.default_parameters" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.default_parameters" class="fn">default_parameters</a>() -&gt; Self::<a class="associatedtype" href="trait.Printable.html#associatedtype.Parameters" title="type arduboy_rust::prelude::Printable::Parameters">Parameters</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Printable-for-%26%5Bu8%5D" class="impl"><a class="src rightside" href="../../src/arduboy_rust/print.rs.html#82-92">source</a><a href="#impl-Printable-for-%26%5Bu8%5D" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Printable.html" title="trait arduboy_rust::prelude::Printable">Printable</a> for &amp;[u8]</h3></section></summary><div c