Files
phy/plotpy/trait.GraphMaker.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

8 lines
8.2 KiB
HTML

<!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="Defines the trait used by Plot to add graph entities"><title>GraphMaker in plotpy - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="plotpy" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.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" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../plotpy/index.html">plotpy</a><span class="version">0.5.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Graph<wbr>Maker</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.clear_buffer" title="clear_buffer">clear_buffer</a></li><li><a href="#tymethod.get_buffer" title="get_buffer">get_buffer</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate plotpy</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">plotpy</a></span><h1>Trait <span class="trait">GraphMaker</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/plotpy/plot.rs.html#9-15">Source</a> </span></div><pre class="rust item-decl"><code>pub trait GraphMaker {
// Required methods
fn <a href="#tymethod.get_buffer" class="fn">get_buffer</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.clear_buffer" class="fn">clear_buffer</a>(&amp;mut self);
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Defines the trait used by Plot to add graph entities</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.get_buffer" class="method"><a class="src rightside" href="../src/plotpy/plot.rs.html#11">Source</a><h4 class="code-header">fn <a href="#tymethod.get_buffer" class="fn">get_buffer</a>&lt;'a&gt;(&amp;'a self) -&gt; &amp;'a <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Returns the text buffer with Python3 commands</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.clear_buffer" class="method"><a class="src rightside" href="../src/plotpy/plot.rs.html#14">Source</a><h4 class="code-header">fn <a href="#tymethod.clear_buffer" class="fn">clear_buffer</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Clear the text buffer with Python commands</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-GraphMaker-for-Canvas" class="impl"><a class="src rightside" href="../src/plotpy/canvas.rs.html#863-870">Source</a><a href="#impl-GraphMaker-for-Canvas" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.GraphMaker.html" title="trait plotpy::GraphMaker">GraphMaker</a> for <a class="struct" href="struct.Canvas.html" title="struct plotpy::Canvas">Canvas</a></h3></section><section id="impl-GraphMaker-for-Contour" class="impl"><a class="src rightside" href="../src/plotpy/contour.rs.html#370-377">Source</a><a href="#impl-GraphMaker-for-Contour" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.GraphMaker.html" title="trait plotpy::GraphMaker">GraphMaker</a> for <a class="struct" href="struct.Contour.html" title="struct plotpy::Contour">Contour</a></h3></section><section id="impl-GraphMaker-for-Curve" class="impl"><a class="src rightside" href="../src/plotpy/curve.rs.html#448-455">Source</a><a href="#impl-GraphMaker-for-Curve" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.GraphMaker.html" title="trait plotpy::GraphMaker">GraphMaker</a> for <a class="struct" href="struct.Curve.html" title="struct plotpy::Curve">Curve</a></h3></section><section id="impl-GraphMaker-for-Histogram" class="impl"><a class="src rightside" href="../src/plotpy/histogram.rs.html#168-175">Source</a><a href="#impl-GraphMaker-for-Histogram" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.GraphMaker.html" title="trait plotpy::GraphMaker">GraphMaker</a> for <a class="struct" href="struct.Histogram.html" title="struct plotpy::Histogram">Histogram</a></h3></section><section id="impl-GraphMaker-for-Legend" class="impl"><a class="src rightside" href="../src/plotpy/legend.rs.html#190-197">Source</a><a href="#impl-GraphMaker-for-Legend" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.GraphMaker.html" title="trait plotpy::GraphMaker">GraphMaker</a> for <a class="struct" href="struct.Legend.html" title="struct plotpy::Legend">Legend</a></h3></section><section id="impl-GraphMaker-for-SlopeIcon" class="impl"><a class="src rightside" href="../src/plotpy/slope_icon.rs.html#433-440">Source</a><a href="#impl-GraphMaker-for-SlopeIcon" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.GraphMaker.html" title="trait plotpy::GraphMaker">GraphMaker</a> for <a class="struct" href="struct.SlopeIcon.html" title="struct plotpy::SlopeIcon">SlopeIcon</a></h3></section><section id="impl-GraphMaker-for-Surface" class="impl"><a class="src rightside" href="../src/plotpy/surface.rs.html#333-340">Source</a><a href="#impl-GraphMaker-for-Surface" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.GraphMaker.html" title="trait plotpy::GraphMaker">GraphMaker</a> for <a class="struct" href="struct.Surface.html" title="struct plotpy::Surface">Surface</a></h3></section><section id="impl-GraphMaker-for-Text" class="impl"><a class="src rightside" href="../src/plotpy/text.rs.html#219-226">Source</a><a href="#impl-GraphMaker-for-Text" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.GraphMaker.html" title="trait plotpy::GraphMaker">GraphMaker</a> for <a class="struct" href="struct.Text.html" title="struct plotpy::Text">Text</a></h3></section></div><script src="../trait.impl/plotpy/plot/trait.GraphMaker.js" async></script></section></div></main></body></html>