| <!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="Mutable column of a matrix."><meta name="keywords" content="rust, rustlang, rust-lang, ColumnMut"><title>ColumnMut in rulinalg::matrix - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc struct"><!--[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">☰</button><a class="sidebar-logo" href="../../rulinalg/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../rulinalg/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">ColumnMut</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.clone_from_slice">clone_from_slice</a></li><li><a href="#method.clone_into_slice">clone_into_slice</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-BaseMatrix%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E">BaseMatrix<T></a></li><li><a href="#impl-BaseMatrixMut%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E">BaseMatrixMut<T></a></li><li><a href="#impl-Debug-for-ColumnMut%3C%27a%2C%20T%3E">Debug</a></li><li><a href="#impl-Deref-for-ColumnMut%3C%27a%2C%20T%3E">Deref</a></li><li><a href="#impl-DerefMut-for-ColumnMut%3C%27a%2C%20T%3E">DerefMut</a></li><li><a href="#impl-From%3CColumnMut%3C%27a%2C%20T%3E%3E-for-Vector%3CT%3E">From<ColumnMut<'a, T>></a></li><li><a href="#impl-Index%3Cusize%3E-for-ColumnMut%3C%27a%2C%20T%3E">Index<usize></a></li><li><a href="#impl-IndexMut%3Cusize%3E-for-ColumnMut%3C%27a%2C%20T%3E">IndexMut<usize></a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-ColumnMut%3C%27a%2C%20T%3E">RefUnwindSafe</a></li><li><a href="#impl-Send-for-ColumnMut%3C%27a%2C%20T%3E">!Send</a></li><li><a href="#impl-Sync-for-ColumnMut%3C%27a%2C%20T%3E">!Sync</a></li><li><a href="#impl-Unpin-for-ColumnMut%3C%27a%2C%20T%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-ColumnMut%3C%27a%2C%20T%3E">!UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-ColumnMut%3C%27a%2C%20T%3E">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-ColumnMut%3C%27a%2C%20T%3E">Into<U></a></li><li><a href="#impl-TryFrom%3CU%3E-for-ColumnMut%3C%27a%2C%20T%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-ColumnMut%3C%27a%2C%20T%3E">TryInto<U></a></li></ul></section><h2><a href="index.html">In rulinalg::matrix</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="../index.html">rulinalg</a>::<wbr><a href="index.html">matrix</a>::<wbr><a class="struct" href="#">ColumnMut</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/rulinalg/matrix/mod.rs.html#229-231">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct ColumnMut<'a, T: 'a> { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Mutable column of a matrix.</p> |
| <p>This struct points to a <code>MatrixSliceMut</code> |
| making up a column in a matrix. |
| You can deref this struct to retrieve |
| the raw column <code>MatrixSliceMut</code>.</p> |
| <h2 id="example"><a href="#example">Example</a></h2> |
| <div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>rulinalg::matrix::BaseMatrixMut; |
| |
| <span class="kw">let </span><span class="kw-2">mut </span>mat = <span class="macro">matrix!</span>[<span class="number">1.0</span>, <span class="number">2.0</span>; |
| <span class="number">3.0</span>, <span class="number">4.0</span>]; |
| { |
| <span class="kw">let </span><span class="kw-2">mut </span>column = mat.col_mut(<span class="number">1</span>); |
| <span class="kw-2">*</span>column += <span class="number">2.0</span>; |
| } |
| <span class="kw">let </span>expected = <span class="macro">matrix!</span>[<span class="number">1.0</span>, <span class="number">4.0</span>; |
| <span class="number">3.0</span>, <span class="number">6.0</span>]; |
| <span class="macro">assert_matrix_eq!</span>(mat, expected);</code></pre></div> |
| </div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/mod.rs.html#400-428">source</a><a href="#impl-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T><span class="where fmt-newline">where<br> T: Clone,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from_slice" class="method has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/mod.rs.html#407-413">source</a><h4 class="code-header">pub fn <a href="#method.clone_from_slice" class="fnname">clone_from_slice</a>(&mut self, slice: &[T])</h4></section></summary><div class="docblock"><p>Clones the elements of the given slice of compatible size |
| into this column.</p> |
| <h5 id="panics"><a href="#panics">Panics</a></h5> |
| <ul> |
| <li>The slice does not have the same length as |
| the number of rows in the column.</li> |
| </ul> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into_slice" class="method has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/mod.rs.html#421-427">source</a><h4 class="code-header">pub fn <a href="#method.clone_into_slice" class="fnname">clone_into_slice</a>(&self, slice: &mut [T])</h4></section></summary><div class="docblock"><p>Clones the elements of this column into a |
| slice of compatible size.</p> |
| <h5 id="panics-1"><a href="#panics-1">Panics</a></h5> |
| <ul> |
| <li>The slice does not have the same length as |
| the number of rows in the column.</li> |
| </ul> |
| </div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-BaseMatrix%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/impl_base.rs.html#180-194">source</a><a href="#impl-BaseMatrix%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> <a class="trait" href="trait.BaseMatrix.html" title="trait rulinalg::matrix::BaseMatrix">BaseMatrix</a><T> for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rows" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/impl_base.rs.html#181-183">source</a><a href="#method.rows" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#tymethod.rows" class="fnname">rows</a>(&self) -> usize</h4></section></summary><div class='docblock'>Rows in the matrix.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cols" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/impl_base.rs.html#184-186">source</a><a href="#method.cols" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#tymethod.cols" class="fnname">cols</a>(&self) -> usize</h4></section></summary><div class='docblock'>Columns in the matrix.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.row_stride" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/impl_base.rs.html#187-189">source</a><a href="#method.row_stride" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#tymethod.row_stride" class="fnname">row_stride</a>(&self) -> usize</h4></section></summary><div class='docblock'>Row stride in the matrix.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ptr" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/impl_base.rs.html#191-193">source</a><a href="#method.as_ptr" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#tymethod.as_ptr" class="fnname">as_ptr</a>(&self) -> *const T</h4></section></summary><div class='docblock'>Top left index of the matrix.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_empty" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#55-57">source</a><a href="#method.is_empty" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.is_empty" class="fnname">is_empty</a>(&self) -> bool</h4></section></summary><div class='docblock'>Returns true if the matrix contais no elements</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_slice" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#72-76">source</a><a href="#method.as_slice" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.as_slice" class="fnname">as_slice</a>(&self) -> <a class="struct" href="struct.MatrixSlice.html" title="struct rulinalg::matrix::MatrixSlice">MatrixSlice</a><'_, T></h4></section></summary><div class='docblock'>Returns a <code>MatrixSlice</code> over the whole matrix. <a href="trait.BaseMatrix.html#method.as_slice">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_unchecked" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#79-81">source</a><a href="#method.get_unchecked" class="anchor"></a><h4 class="code-header">unsafe fn <a href="trait.BaseMatrix.html#method.get_unchecked" class="fnname">get_unchecked</a>(&self, index: [usize; 2]) -> &T</h4></section></summary><div class='docblock'>Get a reference to an element in the matrix without bounds checking.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#101-110">source</a><a href="#method.get" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.get" class="fnname">get</a>(&self, index: [usize; 2]) -> Option<&T></h4></section></summary><div class='docblock'>Get a reference to an element in the matrix. <a href="trait.BaseMatrix.html#method.get">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.col" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#133-139">source</a><a href="#method.col" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.col" class="fnname">col</a>(&self, index: usize) -> <a class="struct" href="struct.Column.html" title="struct rulinalg::matrix::Column">Column</a><'_, T></h4></section></summary><div class='docblock'>Returns the column of a matrix at the given index. |
| <code>None</code> if the index is out of bounds. <a href="trait.BaseMatrix.html#method.col">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.col_unchecked" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#158-161">source</a><a href="#method.col_unchecked" class="anchor"></a><h4 class="code-header">unsafe fn <a href="trait.BaseMatrix.html#method.col_unchecked" class="fnname">col_unchecked</a>(&self, index: usize) -> <a class="struct" href="struct.Column.html" title="struct rulinalg::matrix::Column">Column</a><'_, T></h4></section></summary><div class='docblock'>Returns the column of a matrix at the given |
| index without doing a bounds check. <a href="trait.BaseMatrix.html#method.col_unchecked">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.row" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#183-189">source</a><a href="#method.row" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.row" class="fnname">row</a>(&self, index: usize) -> <a class="struct" href="struct.Row.html" title="struct rulinalg::matrix::Row">Row</a><'_, T></h4></section></summary><div class='docblock'>Returns the row of a matrix at the given index. <a href="trait.BaseMatrix.html#method.row">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.row_unchecked" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#207-210">source</a><a href="#method.row_unchecked" class="anchor"></a><h4 class="code-header">unsafe fn <a href="trait.BaseMatrix.html#method.row_unchecked" class="fnname">row_unchecked</a>(&self, index: usize) -> <a class="struct" href="struct.Row.html" title="struct rulinalg::matrix::Row">Row</a><'_, T></h4></section></summary><div class='docblock'>Returns the row of a matrix at the given index without doing unbounds checking <a href="trait.BaseMatrix.html#method.row_unchecked">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iter" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#229-241">source</a><a href="#method.iter" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.iter" class="fnname">iter</a><'a>(&self) -> <a class="struct" href="struct.SliceIter.html" title="struct rulinalg::matrix::SliceIter">SliceIter</a><'a, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.SliceIter.html" title="struct rulinalg::matrix::SliceIter">SliceIter</a><'a, T></span><code class="content"><span class="where fmt-newline">impl<'a, T> Iterator for <a class="struct" href="struct.SliceIter.html" title="struct rulinalg::matrix::SliceIter">SliceIter</a><'a, T></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = &'a T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> T: 'a,</span></h4></section></summary><div class='docblock'>Returns an iterator over the matrix data. <a href="trait.BaseMatrix.html#method.iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.col_iter" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#262-271">source</a><a href="#method.col_iter" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.col_iter" class="fnname">col_iter</a>(&self) -> <a class="struct" href="struct.Cols.html" title="struct rulinalg::matrix::Cols">Cols</a><'_, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.Cols.html" title="struct rulinalg::matrix::Cols">Cols</a><'a, T></span><code class="content"><span class="where fmt-newline">impl<'a, T> Iterator for <a class="struct" href="struct.Cols.html" title="struct rulinalg::matrix::Cols">Cols</a><'a, T></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = <a class="struct" href="struct.Column.html" title="struct rulinalg::matrix::Column">Column</a><'a, T>;</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Iterate over the columns of the matrix. <a href="trait.BaseMatrix.html#method.col_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.row_iter" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#292-301">source</a><a href="#method.row_iter" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.row_iter" class="fnname">row_iter</a>(&self) -> <a class="struct" href="struct.Rows.html" title="struct rulinalg::matrix::Rows">Rows</a><'_, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.Rows.html" title="struct rulinalg::matrix::Rows">Rows</a><'a, T></span><code class="content"><span class="where fmt-newline">impl<'a, T> Iterator for <a class="struct" href="struct.Rows.html" title="struct rulinalg::matrix::Rows">Rows</a><'a, T></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = <a class="struct" href="struct.Row.html" title="struct rulinalg::matrix::Row">Row</a><'a, T>;</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Iterate over the rows of the matrix. <a href="trait.BaseMatrix.html#method.row_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.diag_iter" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#336-357">source</a><a href="#method.diag_iter" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.diag_iter" class="fnname">diag_iter</a>(&self, k: <a class="enum" href="enum.DiagOffset.html" title="enum rulinalg::matrix::DiagOffset">DiagOffset</a>) -> <a class="struct" href="struct.Diagonal.html" title="struct rulinalg::matrix::Diagonal">Diagonal</a><'_, T, Self><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.Diagonal.html" title="struct rulinalg::matrix::Diagonal">Diagonal</a><'a, T, M></span><code class="content"><span class="where fmt-newline">impl<'a, T, M: <a class="trait" href="trait.BaseMatrix.html" title="trait rulinalg::matrix::BaseMatrix">BaseMatrix</a><T>> Iterator for <a class="struct" href="struct.Diagonal.html" title="struct rulinalg::matrix::Diagonal">Diagonal</a><'a, T, M></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = &'a T;</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Iterate over diagonal entries <a href="trait.BaseMatrix.html#method.diag_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.metric" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#459-464">source</a><a href="#method.metric" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.metric" class="fnname">metric</a><'a, 'b, B, M>(&'a self, mat: &'b B, metric: M) -> T<span class="where fmt-newline">where<br> B: 'b + <a class="trait" href="trait.BaseMatrix.html" title="trait rulinalg::matrix::BaseMatrix">BaseMatrix</a><T>,<br> M: <a class="trait" href="../norm/trait.MatrixMetric.html" title="trait rulinalg::norm::MatrixMetric">MatrixMetric</a><'a, 'b, T, Self, B>,</span></h4></section></summary><div class='docblock'>Compute the metric distance between two matrices. <a href="trait.BaseMatrix.html#method.metric">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.diag" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#909-911">source</a><a href="#method.diag" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.diag" class="fnname">diag</a>(&self) -> <a class="struct" href="struct.Diagonal.html" title="struct rulinalg::matrix::Diagonal">Diagonal</a><'_, T, Self><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.Diagonal.html" title="struct rulinalg::matrix::Diagonal">Diagonal</a><'a, T, M></span><code class="content"><span class="where fmt-newline">impl<'a, T, M: <a class="trait" href="trait.BaseMatrix.html" title="trait rulinalg::matrix::BaseMatrix">BaseMatrix</a><T>> Iterator for <a class="struct" href="struct.Diagonal.html" title="struct rulinalg::matrix::Diagonal">Diagonal</a><'a, T, M></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = &'a T;</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Extract the diagonal of the matrix <a href="trait.BaseMatrix.html#method.diag">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.split_at" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1079-1115">source</a><a href="#method.split_at" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.split_at" class="fnname">split_at</a>(<br> &self,<br> mid: usize,<br> axis: <a class="enum" href="enum.Axes.html" title="enum rulinalg::matrix::Axes">Axes</a><br>) -> (<a class="struct" href="struct.MatrixSlice.html" title="struct rulinalg::matrix::MatrixSlice">MatrixSlice</a><'_, T>, <a class="struct" href="struct.MatrixSlice.html" title="struct rulinalg::matrix::MatrixSlice">MatrixSlice</a><'_, T>)</h4></section></summary><div class='docblock'>Split the matrix at the specified axis returning two <code>MatrixSlice</code>s. <a href="trait.BaseMatrix.html#method.split_at">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub_slice" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1128-1144">source</a><a href="#method.sub_slice" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrix.html#method.sub_slice" class="fnname">sub_slice</a><'a>(<br> &self,<br> start: [usize; 2],<br> rows: usize,<br> cols: usize<br>) -> <a class="struct" href="struct.MatrixSlice.html" title="struct rulinalg::matrix::MatrixSlice">MatrixSlice</a><'a, T><span class="where fmt-newline">where<br> T: 'a,</span></h4></section></summary><div class='docblock'>Produce a <code>MatrixSlice</code> from an existing matrix. <a href="trait.BaseMatrix.html#method.sub_slice">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-BaseMatrixMut%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/impl_base.rs.html#196-201">source</a><a href="#impl-BaseMatrixMut%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> <a class="trait" href="trait.BaseMatrixMut.html" title="trait rulinalg::matrix::BaseMatrixMut">BaseMatrixMut</a><T> for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_ptr" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/impl_base.rs.html#198-200">source</a><a href="#method.as_mut_ptr" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#tymethod.as_mut_ptr" class="fnname">as_mut_ptr</a>(&mut self) -> *mut T</h4></section></summary><div class="docblock"><p>Top left index of the slice.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut_slice" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1162-1169">source</a><a href="#method.as_mut_slice" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.as_mut_slice" class="fnname">as_mut_slice</a>(&mut self) -> <a class="struct" href="struct.MatrixSliceMut.html" title="struct rulinalg::matrix::MatrixSliceMut">MatrixSliceMut</a><'_, T></h4></section></summary><div class='docblock'>Returns a <code>MatrixSliceMut</code> over the whole matrix. <a href="trait.BaseMatrixMut.html#method.as_mut_slice">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_unchecked_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1172-1174">source</a><a href="#method.get_unchecked_mut" class="anchor"></a><h4 class="code-header">unsafe fn <a href="trait.BaseMatrixMut.html#method.get_unchecked_mut" class="fnname">get_unchecked_mut</a>(&mut self, index: [usize; 2]) -> &mut T</h4></section></summary><div class='docblock'>Get a mutable reference to an element in the matrix without bounds checks.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1196-1205">source</a><a href="#method.get_mut" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.get_mut" class="fnname">get_mut</a>(&mut self, index: [usize; 2]) -> Option<&mut T></h4></section></summary><div class='docblock'>Get a mutable reference to an element in the matrix. <a href="trait.BaseMatrixMut.html#method.get_mut">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iter_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1229-1241">source</a><a href="#method.iter_mut" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.iter_mut" class="fnname">iter_mut</a><'a>(&mut self) -> <a class="struct" href="struct.SliceIterMut.html" title="struct rulinalg::matrix::SliceIterMut">SliceIterMut</a><'a, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.SliceIterMut.html" title="struct rulinalg::matrix::SliceIterMut">SliceIterMut</a><'a, T></span><code class="content"><span class="where fmt-newline">impl<'a, T> Iterator for <a class="struct" href="struct.SliceIterMut.html" title="struct rulinalg::matrix::SliceIterMut">SliceIterMut</a><'a, T></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = &'a mut T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> T: 'a,</span></h4></section></summary><div class='docblock'>Returns a mutable iterator over the matrix. <a href="trait.BaseMatrixMut.html#method.iter_mut">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.col_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1270-1276">source</a><a href="#method.col_mut" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.col_mut" class="fnname">col_mut</a>(&mut self, index: usize) -> <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'_, T></h4></section></summary><div class='docblock'>Returns a mutable reference to the column of a matrix at the given index. |
| <code>None</code> if the index is out of bounds. <a href="trait.BaseMatrixMut.html#method.col_mut">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.col_unchecked_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1299-1302">source</a><a href="#method.col_unchecked_mut" class="anchor"></a><h4 class="code-header">unsafe fn <a href="trait.BaseMatrixMut.html#method.col_unchecked_mut" class="fnname">col_unchecked_mut</a>(&mut self, index: usize) -> <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'_, T></h4></section></summary><div class='docblock'>Returns a mutable reference to the column of a matrix at the given index |
| without doing a bounds check. <a href="trait.BaseMatrixMut.html#method.col_unchecked_mut">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.row_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1331-1337">source</a><a href="#method.row_mut" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.row_mut" class="fnname">row_mut</a>(&mut self, index: usize) -> <a class="struct" href="struct.RowMut.html" title="struct rulinalg::matrix::RowMut">RowMut</a><'_, T></h4></section></summary><div class='docblock'>Returns a mutable reference to the row of a matrix at the given index. |
| <code>None</code> if the index is out of bounds. <a href="trait.BaseMatrixMut.html#method.row_mut">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.row_unchecked_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1360-1363">source</a><a href="#method.row_unchecked_mut" class="anchor"></a><h4 class="code-header">unsafe fn <a href="trait.BaseMatrixMut.html#method.row_unchecked_mut" class="fnname">row_unchecked_mut</a>(&mut self, index: usize) -> <a class="struct" href="struct.RowMut.html" title="struct rulinalg::matrix::RowMut">RowMut</a><'_, T></h4></section></summary><div class='docblock'>Returns a mutable reference to the row of a matrix at the given index |
| without doing a bounds check. <a href="trait.BaseMatrixMut.html#method.row_unchecked_mut">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.swap_rows" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1394-1417">source</a><a href="#method.swap_rows" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.swap_rows" class="fnname">swap_rows</a>(&mut self, a: usize, b: usize)</h4></section></summary><div class='docblock'>Swaps two rows in a matrix. <a href="trait.BaseMatrixMut.html#method.swap_rows">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.swap_cols" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1446-1462">source</a><a href="#method.swap_cols" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.swap_cols" class="fnname">swap_cols</a>(&mut self, a: usize, b: usize)</h4></section></summary><div class='docblock'>Swaps two columns in a matrix. <a href="trait.BaseMatrixMut.html#method.swap_cols">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.col_iter_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1484-1493">source</a><a href="#method.col_iter_mut" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.col_iter_mut" class="fnname">col_iter_mut</a>(&mut self) -> <a class="struct" href="struct.ColsMut.html" title="struct rulinalg::matrix::ColsMut">ColsMut</a><'_, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.ColsMut.html" title="struct rulinalg::matrix::ColsMut">ColsMut</a><'a, T></span><code class="content"><span class="where fmt-newline">impl<'a, T> Iterator for <a class="struct" href="struct.ColsMut.html" title="struct rulinalg::matrix::ColsMut">ColsMut</a><'a, T></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T>;</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Iterate over the mutable columns of the matrix. <a href="trait.BaseMatrixMut.html#method.col_iter_mut">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.row_iter_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1515-1524">source</a><a href="#method.row_iter_mut" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.row_iter_mut" class="fnname">row_iter_mut</a>(&mut self) -> <a class="struct" href="struct.RowsMut.html" title="struct rulinalg::matrix::RowsMut">RowsMut</a><'_, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.RowsMut.html" title="struct rulinalg::matrix::RowsMut">RowsMut</a><'a, T></span><code class="content"><span class="where fmt-newline">impl<'a, T> Iterator for <a class="struct" href="struct.RowsMut.html" title="struct rulinalg::matrix::RowsMut">RowsMut</a><'a, T></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = <a class="struct" href="struct.RowMut.html" title="struct rulinalg::matrix::RowMut">RowMut</a><'a, T>;</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Iterate over the mutable rows of the matrix. <a href="trait.BaseMatrixMut.html#method.row_iter_mut">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.diag_iter_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1562-1585">source</a><a href="#method.diag_iter_mut" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.diag_iter_mut" class="fnname">diag_iter_mut</a>(&mut self, k: <a class="enum" href="enum.DiagOffset.html" title="enum rulinalg::matrix::DiagOffset">DiagOffset</a>) -> <a class="struct" href="struct.DiagonalMut.html" title="struct rulinalg::matrix::DiagonalMut">DiagonalMut</a><'_, T, Self><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DiagonalMut.html" title="struct rulinalg::matrix::DiagonalMut">DiagonalMut</a><'a, T, M></span><code class="content"><span class="where fmt-newline">impl<'a, T, M: <a class="trait" href="trait.BaseMatrixMut.html" title="trait rulinalg::matrix::BaseMatrixMut">BaseMatrixMut</a><T>> Iterator for <a class="struct" href="struct.DiagonalMut.html" title="struct rulinalg::matrix::DiagonalMut">DiagonalMut</a><'a, T, M></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = &'a mut T;</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Iterate over diagonal entries mutably <a href="trait.BaseMatrixMut.html#method.diag_iter_mut">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.split_at_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1658-1697">source</a><a href="#method.split_at_mut" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.split_at_mut" class="fnname">split_at_mut</a>(<br> &mut self,<br> mid: usize,<br> axis: <a class="enum" href="enum.Axes.html" title="enum rulinalg::matrix::Axes">Axes</a><br>) -> (<a class="struct" href="struct.MatrixSliceMut.html" title="struct rulinalg::matrix::MatrixSliceMut">MatrixSliceMut</a><'_, T>, <a class="struct" href="struct.MatrixSliceMut.html" title="struct rulinalg::matrix::MatrixSliceMut">MatrixSliceMut</a><'_, T>)</h4></section></summary><div class='docblock'>Split the matrix at the specified axis returning two <code>MatrixSliceMut</code>s. <a href="trait.BaseMatrixMut.html#method.split_at_mut">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub_slice_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/base/mod.rs.html#1710-1730">source</a><a href="#method.sub_slice_mut" class="anchor"></a><h4 class="code-header">fn <a href="trait.BaseMatrixMut.html#method.sub_slice_mut" class="fnname">sub_slice_mut</a><'a>(<br> &mut self,<br> start: [usize; 2],<br> rows: usize,<br> cols: usize<br>) -> <a class="struct" href="struct.MatrixSliceMut.html" title="struct rulinalg::matrix::MatrixSliceMut">MatrixSliceMut</a><'a, T><span class="where fmt-newline">where<br> T: 'a,</span></h4></section></summary><div class='docblock'>Produce a <code>MatrixSliceMut</code> from an existing matrix. <a href="trait.BaseMatrixMut.html#method.sub_slice_mut">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/mod.rs.html#228">source</a><a href="#impl-Debug-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Debug + 'a> Debug for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/mod.rs.html#228">source</a><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deref-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/deref.rs.html#36-42">source</a><a href="#impl-Deref-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: 'a> Deref for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Target" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Target" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Target</a> = <a class="struct" href="struct.MatrixSliceMut.html" title="struct rulinalg::matrix::MatrixSliceMut">MatrixSliceMut</a><'a, T></h4></section></summary><div class='docblock'>The resulting type after dereferencing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/deref.rs.html#39-41">source</a><a href="#method.deref" class="anchor"></a><h4 class="code-header">fn <a class="fnname">deref</a>(&self) -> &<a class="struct" href="struct.MatrixSliceMut.html" title="struct rulinalg::matrix::MatrixSliceMut">MatrixSliceMut</a><'a, T></h4></section></summary><div class='docblock'>Dereferences the value.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-DerefMut-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/deref.rs.html#44-48">source</a><a href="#impl-DerefMut-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: 'a> DerefMut for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deref_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/deref.rs.html#45-47">source</a><a href="#method.deref_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">deref_mut</a>(&mut self) -> &mut <a class="struct" href="struct.MatrixSliceMut.html" title="struct rulinalg::matrix::MatrixSliceMut">MatrixSliceMut</a><'a, T></h4></section></summary><div class='docblock'>Mutably dereferences the value.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CColumnMut%3C%27a%2C%20T%3E%3E-for-Vector%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/convert.rs.html#119">source</a><a href="#impl-From%3CColumnMut%3C%27a%2C%20T%3E%3E-for-Vector%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone> From<<a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T>> for <a class="struct" href="../vector/struct.Vector.html" title="struct rulinalg::vector::Vector">Vector</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/convert.rs.html#119">source</a><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(column: <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Index%3Cusize%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/impl_ops.rs.html#108-113">source</a><a href="#impl-Index%3Cusize%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Index<usize> for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>The returned type after indexing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/impl_ops.rs.html#110-112">source</a><a href="#method.index" class="anchor"></a><h4 class="code-header">fn <a class="fnname">index</a>(&self, idx: usize) -> &T</h4></section></summary><div class='docblock'>Performs the indexing (<code>container[index]</code>) operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-IndexMut%3Cusize%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/impl_ops.rs.html#115-119">source</a><a href="#impl-IndexMut%3Cusize%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> IndexMut<usize> for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index_mut" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rulinalg/matrix/impl_ops.rs.html#116-118">source</a><a href="#method.index_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">index_mut</a>(&mut self, idx: usize) -> &mut T</h4></section></summary><div class='docblock'>Performs the mutable indexing (<code>container[index]</code>) operation. <a>Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> RefUnwindSafe for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T><span class="where fmt-newline">where<br> T: RefUnwindSafe,</span></h3></section><section id="impl-Send-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-Send-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> !Send for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T></h3></section><section id="impl-Sync-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-Sync-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> !Sync for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T></h3></section><section id="impl-Unpin-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-Unpin-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Unpin for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T></h3></section><section id="impl-UnwindSafe-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-UnwindSafe-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> !UnwindSafe for <a class="struct" href="struct.ColumnMut.html" title="struct rulinalg::matrix::ColumnMut">ColumnMut</a><'a, T></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-Any-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<T> Any for T<span class="where fmt-newline">where<br> T: 'static + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a class="fnname">type_id</a>(&self) -> TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<T> Borrow<T> for T<span class="where fmt-newline">where<br> T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow</a>(&self) -> &T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<T> BorrowMut<T> for T<span class="where fmt-newline">where<br> T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow_mut</a>(&mut self) -> &mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<T> From<T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<T, U> Into<U> for T<span class="where fmt-newline">where<br> U: From<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p> |
| <p>That is, this conversion is whatever the implementation of |
| <code>[From]<T> for U</code> chooses to do.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<T, U> TryFrom<U> for T<span class="where fmt-newline">where<br> U: Into<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(value: U) -> Result<T, <T as TryFrom<U>>::Error></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-ColumnMut%3C%27a%2C%20T%3E" class="anchor"></a><h3 class="code-header">impl<T, U> TryInto<U> for T<span class="where fmt-newline">where<br> U: TryFrom<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <U as TryFrom<T>>::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_into</a>(self) -> Result<U, <U as TryFrom<T>>::Error></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="rulinalg" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html> |