struct.lconv.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta name="generator" content="rustdoc">
  7. <meta name="description" content="API documentation for the Rust `lconv` struct in crate `libc`.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, lconv">
  9. <title>libc::lconv - Rust</title>
  10. <link rel="stylesheet" type="text/css" href="../normalize.css">
  11. <link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle">
  12. <link rel="stylesheet" type="text/css" href="../dark.css">
  13. <link rel="stylesheet" type="text/css" href="../main.css" id="themeStyle">
  14. <script src="../storage.js"></script>
  15. <link rel="shortcut icon" href="https://doc.rust-lang.org/favicon.ico">
  16. </head>
  17. <body class="rustdoc struct">
  18. <!--[if lte IE 8]>
  19. <div class="warning">
  20. This old browser is unsupported and will most likely display funky
  21. things.
  22. </div>
  23. <![endif]-->
  24. <nav class="sidebar">
  25. <div class="sidebar-menu">&#9776;</div>
  26. <a href='../libc/index.html'><img src='https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png' alt='logo' width='100'></a>
  27. <p class='location'>Struct lconv</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.decimal_point">decimal_point</a><a href="#structfield.thousands_sep">thousands_sep</a><a href="#structfield.grouping">grouping</a><a href="#structfield.int_curr_symbol">int_curr_symbol</a><a href="#structfield.currency_symbol">currency_symbol</a><a href="#structfield.mon_decimal_point">mon_decimal_point</a><a href="#structfield.mon_thousands_sep">mon_thousands_sep</a><a href="#structfield.mon_grouping">mon_grouping</a><a href="#structfield.positive_sign">positive_sign</a><a href="#structfield.negative_sign">negative_sign</a><a href="#structfield.int_frac_digits">int_frac_digits</a><a href="#structfield.frac_digits">frac_digits</a><a href="#structfield.p_cs_precedes">p_cs_precedes</a><a href="#structfield.p_sep_by_space">p_sep_by_space</a><a href="#structfield.n_cs_precedes">n_cs_precedes</a><a href="#structfield.n_sep_by_space">n_sep_by_space</a><a href="#structfield.p_sign_posn">p_sign_posn</a><a href="#structfield.n_sign_posn">n_sign_posn</a><a href="#structfield.int_p_cs_precedes">int_p_cs_precedes</a><a href="#structfield.int_n_cs_precedes">int_n_cs_precedes</a><a href="#structfield.int_p_sep_by_space">int_p_sep_by_space</a><a href="#structfield.int_n_sep_by_space">int_n_sep_by_space</a><a href="#structfield.int_p_sign_posn">int_p_sign_posn</a><a href="#structfield.int_n_sign_posn">int_n_sign_posn</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Copy">Copy</a><a href="#impl-Clone">Clone</a></div></div><p class='location'><a href='index.html'>libc</a></p><script>window.sidebarCurrent = {name: 'lconv', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
  28. </nav>
  29. <div class="theme-picker">
  30. <button id="theme-picker" aria-label="Pick another theme!">
  31. <img src="../brush.svg" width="18" alt="Pick another theme!">
  32. </button>
  33. <div id="theme-choices"></div>
  34. </div>
  35. <script src="../theme.js"></script>
  36. <nav class="sub">
  37. <form class="search-form js-only">
  38. <div class="search-container">
  39. <input class="search-input" name="search"
  40. autocomplete="off"
  41. placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
  42. type="search">
  43. </div>
  44. </form>
  45. </nav>
  46. <section id='main' class="content">
  47. <h1 class='fqn'><span class='in-band'>Struct <a href='index.html'>libc</a>::<wbr><a class="struct" href=''>lconv</a></span><span class='out-of-band'><span id='render-detail'>
  48. <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
  49. [<span class='inner'>&#x2212;</span>]
  50. </a>
  51. </span><a class='srclink' href='../src/libc/macros.rs.html#42' title='goto source code'>[src]</a></span></h1>
  52. <pre class='rust struct'><div class="docblock attributes">#[repr(C)]
  53. </div>pub struct lconv {
  54. pub decimal_point: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  55. pub thousands_sep: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  56. pub grouping: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  57. pub int_curr_symbol: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  58. pub currency_symbol: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  59. pub mon_decimal_point: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  60. pub mon_thousands_sep: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  61. pub mon_grouping: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  62. pub positive_sign: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  63. pub negative_sign: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  64. pub int_frac_digits: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  65. pub frac_digits: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  66. pub p_cs_precedes: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  67. pub p_sep_by_space: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  68. pub n_cs_precedes: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  69. pub n_sep_by_space: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  70. pub p_sign_posn: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  71. pub n_sign_posn: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  72. pub int_p_cs_precedes: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  73. pub int_n_cs_precedes: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  74. pub int_p_sep_by_space: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  75. pub int_n_sep_by_space: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  76. pub int_p_sign_posn: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  77. pub int_n_sign_posn: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a>,
  78. }</pre><h2 id='fields' class='fields small-section-header'>
  79. Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.decimal_point" class="structfield small-section-header">
  80. <a href="#structfield.decimal_point" class="anchor field"></a>
  81. <span id="decimal_point.v" class='invisible'>
  82. <code>decimal_point: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  83. </span></span><span id="structfield.thousands_sep" class="structfield small-section-header">
  84. <a href="#structfield.thousands_sep" class="anchor field"></a>
  85. <span id="thousands_sep.v" class='invisible'>
  86. <code>thousands_sep: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  87. </span></span><span id="structfield.grouping" class="structfield small-section-header">
  88. <a href="#structfield.grouping" class="anchor field"></a>
  89. <span id="grouping.v" class='invisible'>
  90. <code>grouping: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  91. </span></span><span id="structfield.int_curr_symbol" class="structfield small-section-header">
  92. <a href="#structfield.int_curr_symbol" class="anchor field"></a>
  93. <span id="int_curr_symbol.v" class='invisible'>
  94. <code>int_curr_symbol: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  95. </span></span><span id="structfield.currency_symbol" class="structfield small-section-header">
  96. <a href="#structfield.currency_symbol" class="anchor field"></a>
  97. <span id="currency_symbol.v" class='invisible'>
  98. <code>currency_symbol: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  99. </span></span><span id="structfield.mon_decimal_point" class="structfield small-section-header">
  100. <a href="#structfield.mon_decimal_point" class="anchor field"></a>
  101. <span id="mon_decimal_point.v" class='invisible'>
  102. <code>mon_decimal_point: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  103. </span></span><span id="structfield.mon_thousands_sep" class="structfield small-section-header">
  104. <a href="#structfield.mon_thousands_sep" class="anchor field"></a>
  105. <span id="mon_thousands_sep.v" class='invisible'>
  106. <code>mon_thousands_sep: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  107. </span></span><span id="structfield.mon_grouping" class="structfield small-section-header">
  108. <a href="#structfield.mon_grouping" class="anchor field"></a>
  109. <span id="mon_grouping.v" class='invisible'>
  110. <code>mon_grouping: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  111. </span></span><span id="structfield.positive_sign" class="structfield small-section-header">
  112. <a href="#structfield.positive_sign" class="anchor field"></a>
  113. <span id="positive_sign.v" class='invisible'>
  114. <code>positive_sign: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  115. </span></span><span id="structfield.negative_sign" class="structfield small-section-header">
  116. <a href="#structfield.negative_sign" class="anchor field"></a>
  117. <span id="negative_sign.v" class='invisible'>
  118. <code>negative_sign: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  119. </span></span><span id="structfield.int_frac_digits" class="structfield small-section-header">
  120. <a href="#structfield.int_frac_digits" class="anchor field"></a>
  121. <span id="int_frac_digits.v" class='invisible'>
  122. <code>int_frac_digits: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  123. </span></span><span id="structfield.frac_digits" class="structfield small-section-header">
  124. <a href="#structfield.frac_digits" class="anchor field"></a>
  125. <span id="frac_digits.v" class='invisible'>
  126. <code>frac_digits: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  127. </span></span><span id="structfield.p_cs_precedes" class="structfield small-section-header">
  128. <a href="#structfield.p_cs_precedes" class="anchor field"></a>
  129. <span id="p_cs_precedes.v" class='invisible'>
  130. <code>p_cs_precedes: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  131. </span></span><span id="structfield.p_sep_by_space" class="structfield small-section-header">
  132. <a href="#structfield.p_sep_by_space" class="anchor field"></a>
  133. <span id="p_sep_by_space.v" class='invisible'>
  134. <code>p_sep_by_space: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  135. </span></span><span id="structfield.n_cs_precedes" class="structfield small-section-header">
  136. <a href="#structfield.n_cs_precedes" class="anchor field"></a>
  137. <span id="n_cs_precedes.v" class='invisible'>
  138. <code>n_cs_precedes: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  139. </span></span><span id="structfield.n_sep_by_space" class="structfield small-section-header">
  140. <a href="#structfield.n_sep_by_space" class="anchor field"></a>
  141. <span id="n_sep_by_space.v" class='invisible'>
  142. <code>n_sep_by_space: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  143. </span></span><span id="structfield.p_sign_posn" class="structfield small-section-header">
  144. <a href="#structfield.p_sign_posn" class="anchor field"></a>
  145. <span id="p_sign_posn.v" class='invisible'>
  146. <code>p_sign_posn: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  147. </span></span><span id="structfield.n_sign_posn" class="structfield small-section-header">
  148. <a href="#structfield.n_sign_posn" class="anchor field"></a>
  149. <span id="n_sign_posn.v" class='invisible'>
  150. <code>n_sign_posn: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  151. </span></span><span id="structfield.int_p_cs_precedes" class="structfield small-section-header">
  152. <a href="#structfield.int_p_cs_precedes" class="anchor field"></a>
  153. <span id="int_p_cs_precedes.v" class='invisible'>
  154. <code>int_p_cs_precedes: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  155. </span></span><span id="structfield.int_n_cs_precedes" class="structfield small-section-header">
  156. <a href="#structfield.int_n_cs_precedes" class="anchor field"></a>
  157. <span id="int_n_cs_precedes.v" class='invisible'>
  158. <code>int_n_cs_precedes: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  159. </span></span><span id="structfield.int_p_sep_by_space" class="structfield small-section-header">
  160. <a href="#structfield.int_p_sep_by_space" class="anchor field"></a>
  161. <span id="int_p_sep_by_space.v" class='invisible'>
  162. <code>int_p_sep_by_space: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  163. </span></span><span id="structfield.int_n_sep_by_space" class="structfield small-section-header">
  164. <a href="#structfield.int_n_sep_by_space" class="anchor field"></a>
  165. <span id="int_n_sep_by_space.v" class='invisible'>
  166. <code>int_n_sep_by_space: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  167. </span></span><span id="structfield.int_p_sign_posn" class="structfield small-section-header">
  168. <a href="#structfield.int_p_sign_posn" class="anchor field"></a>
  169. <span id="int_p_sign_posn.v" class='invisible'>
  170. <code>int_p_sign_posn: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  171. </span></span><span id="structfield.int_n_sign_posn" class="structfield small-section-header">
  172. <a href="#structfield.int_n_sign_posn" class="anchor field"></a>
  173. <span id="int_n_sign_posn.v" class='invisible'>
  174. <code>int_n_sign_posn: <a class="type" href="../libc/type.c_char.html" title="type libc::c_char">c_char</a></code>
  175. </span></span>
  176. <h2 id='implementations' class='small-section-header'>
  177. Trait Implementations<a href='#implementations' class='anchor'></a>
  178. </h2>
  179. <h3 id='impl-Copy' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../libc/struct.lconv.html" title="struct libc::lconv">lconv</a></code><a href='#impl-Copy' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/libc/macros.rs.html#44' title='goto source code'>[src]</a></span></h3>
  180. <div class='impl-items'></div><h3 id='impl-Clone' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../libc/struct.lconv.html" title="struct libc::lconv">lconv</a></code><a href='#impl-Clone' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/libc/macros.rs.html#45-47' title='goto source code'>[src]</a></span></h3>
  181. <div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="struct" href="../libc/struct.lconv.html" title="struct libc::lconv">lconv</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/libc/macros.rs.html#46' title='goto source code'>[src]</a></span></h4>
  182. <div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
  183. </div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code></span><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#112-114' title='goto source code'>[src]</a></span></h4>
  184. <div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
  185. </div></div></section>
  186. <section id='search' class="content hidden"></section>
  187. <section class="footer"></section>
  188. <aside id="help" class="hidden">
  189. <div>
  190. <h1 class="hidden">Help</h1>
  191. <div class="shortcuts">
  192. <h2>Keyboard Shortcuts</h2>
  193. <dl>
  194. <dt><kbd>?</kbd></dt>
  195. <dd>Show this help dialog</dd>
  196. <dt><kbd>S</kbd></dt>
  197. <dd>Focus the search field</dd>
  198. <dt><kbd>↑</kbd></dt>
  199. <dd>Move up in search results</dd>
  200. <dt><kbd>↓</kbd></dt>
  201. <dd>Move down in search results</dd>
  202. <dt><kbd>↹</kbd></dt>
  203. <dd>Switch tab</dd>
  204. <dt><kbd>&#9166;</kbd></dt>
  205. <dd>Go to active search result</dd>
  206. <dt><kbd>+</kbd></dt>
  207. <dd>Expand all sections</dd>
  208. <dt><kbd>-</kbd></dt>
  209. <dd>Collapse all sections</dd>
  210. </dl>
  211. </div>
  212. <div class="infos">
  213. <h2>Search Tricks</h2>
  214. <p>
  215. Prefix searches with a type followed by a colon (e.g.
  216. <code>fn:</code>) to restrict the search to a given type.
  217. </p>
  218. <p>
  219. Accepted types are: <code>fn</code>, <code>mod</code>,
  220. <code>struct</code>, <code>enum</code>,
  221. <code>trait</code>, <code>type</code>, <code>macro</code>,
  222. and <code>const</code>.
  223. </p>
  224. <p>
  225. Search functions by type signature (e.g.
  226. <code>vec -> usize</code> or <code>* -> vec</code>)
  227. </p>
  228. </div>
  229. </div>
  230. </aside>
  231. <script>
  232. window.rootPath = "../";
  233. window.currentCrate = "libc";
  234. </script>
  235. <script src="../main.js"></script>
  236. <script defer src="../search-index.js"></script>
  237. </body>
  238. </html>