Skip to content

Commit

Permalink
deploy: 7ac50d8
Browse files Browse the repository at this point in the history
  • Loading branch information
d0cd committed Jan 22, 2024
1 parent 1d3cf31 commit 152b389
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion leo_span/source_map/struct.SourceMap.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div></details><details class="toggle method-toggle" open><summary><section id="method.find_source_file_index" class="method"><a class="src rightside" href="../../src/leo_span/source_map.rs.html#67-73">source</a><h4 class="code-header">fn <a href="#method.find_source_file_index" class="fn">find_source_file_index</a>(&amp;self, pos: <a class="struct" href="../span/struct.BytePos.html" title="struct leo_span::span::BytePos">BytePos</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.usize.html">usize</a>&gt;</h4></section></summary><div class="docblock"><p>Find the index for the source file containing <code>pos</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.find_source_file" class="method"><a class="src rightside" href="../../src/leo_span/source_map.rs.html#76-78">source</a><h4 class="code-header">fn <a href="#method.find_source_file" class="fn">find_source_file</a>(&amp;self, pos: <a class="struct" href="../span/struct.BytePos.html" title="struct leo_span::span::BytePos">BytePos</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a>&lt;<a class="struct" href="struct.SourceFile.html" title="struct leo_span::source_map::SourceFile">SourceFile</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Find the source file containing <code>pos</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.find_line_col" class="method"><a class="src rightside" href="../../src/leo_span/source_map.rs.html#81-85">source</a><h4 class="code-header">fn <a href="#method.find_line_col" class="fn">find_line_col</a>(&amp;self, pos: <a class="struct" href="../span/struct.BytePos.html" title="struct leo_span::span::BytePos">BytePos</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.LineCol.html" title="struct leo_span::source_map::LineCol">LineCol</a>&gt;</h4></section></summary><div class="docblock"><p>Finds line column info about a given <code>pos</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.span_to_location" class="method"><a class="src rightside" href="../../src/leo_span/source_map.rs.html#88-98">source</a><h4 class="code-header">pub fn <a href="#method.span_to_location" class="fn">span_to_location</a>(&amp;self, sp: <a class="struct" href="../span/struct.Span.html" title="struct leo_span::span::Span">Span</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.SpanLocation.html" title="struct leo_span::source_map::SpanLocation">SpanLocation</a>&gt;</h4></section></summary><div class="docblock"><p>Retrives the location (source file, line, col) on the given span.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.span_to_location" class="method"><a class="src rightside" href="../../src/leo_span/source_map.rs.html#88-98">source</a><h4 class="code-header">pub fn <a href="#method.span_to_location" class="fn">span_to_location</a>(&amp;self, sp: <a class="struct" href="../span/struct.Span.html" title="struct leo_span::span::Span">Span</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.SpanLocation.html" title="struct leo_span::source_map::SpanLocation">SpanLocation</a>&gt;</h4></section></summary><div class="docblock"><p>Retrieves the location (source file, line, col) on the given span.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.span_to_string" class="method"><a class="src rightside" href="../../src/leo_span/source_map.rs.html#101-112">source</a><h4 class="code-header">pub fn <a href="#method.span_to_string" class="fn">span_to_string</a>(&amp;self, span: <a class="struct" href="../span/struct.Span.html" title="struct leo_span::span::Span">Span</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Returns a displayable representation of the <code>span</code> as a string.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.contents_of_span" class="method"><a class="src rightside" href="../../src/leo_span/source_map.rs.html#115-120">source</a><h4 class="code-header">pub fn <a href="#method.contents_of_span" class="fn">contents_of_span</a>(&amp;self, span: <a class="struct" href="../span/struct.Span.html" title="struct leo_span::span::Span">Span</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the source contents that is spanned by <code>span</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.line_contents_of_span" class="method"><a class="src rightside" href="../../src/leo_span/source_map.rs.html#134-144">source</a><h4 class="code-header">pub fn <a href="#method.line_contents_of_span" class="fn">line_contents_of_span</a>(&amp;self, span: <a class="struct" href="../span/struct.Span.html" title="struct leo_span::span::Span">Span</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the source contents of the lines that <code>span</code> is within.</p>
Expand Down
2 changes: 1 addition & 1 deletion search-index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/leo_errors/common/mod.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
</span><span class="kw">pub mod </span>traits;
<span class="kw">pub use </span><span class="self">self</span>::traits::<span class="kw-2">*</span>;

<span class="comment">// Right now for cleanliness of calling error functions we say each argument implments one of the follow types rather than giving a specific type.
<span class="comment">// Right now for cleanliness of calling error functions we say each argument implements one of the follow types rather than giving a specific type.
// This allows us to just pass many types rather doing conversions cleaning up the code.
// The args can be made cleaneronce https://github.com/rust-lang/rust/issues/41517 or https://github.com/rust-lang/rust/issues/63063 hits stable.
// Either of why would allows to generate a type alias for these trait implmenting types.
// Either of why would allows to generate a type alias for these trait implementing types.
// pub(crate) type DisplayArg = impl std::fmt::Display;
// pub(crate) type DebugArg = impl std::fmt::Debug;
// pub(crate) type ErrorArg = impl std::error::Error;
Expand Down
2 changes: 1 addition & 1 deletion src/leo_span/source_map.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@
<span class="prelude-val">Some</span>(LineCol { source_file, line, col })
}

<span class="doccomment">/// Retrives the location (source file, line, col) on the given span.
<span class="doccomment">/// Retrieves the location (source file, line, col) on the given span.
</span><span class="kw">pub fn </span>span_to_location(<span class="kw-2">&amp;</span><span class="self">self</span>, sp: Span) -&gt; <span class="prelude-ty">Option</span>&lt;SpanLocation&gt; {
<span class="kw">let </span>lo = <span class="self">self</span>.find_line_col(sp.lo)<span class="question-mark">?</span>;
<span class="kw">let </span>hi = <span class="self">self</span>.find_line_col(sp.hi)<span class="question-mark">?</span>;
Expand Down

0 comments on commit 152b389

Please sign in to comment.