{"id":272738,"date":"2016-01-23T23:06:02","date_gmt":"2016-01-23T20:06:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=272738"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=272738","title":{"rendered":"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u0445"},"content":{"rendered":"<br \/>\n<h4><b>\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e const<\/b><\/h4>\n<h5><b>\u041e \u0441\u0442\u0430\u0442\u044c\u0435<\/b><\/h5>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 <b>const.<\/b><\/p>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430. <a name=\"habracut\"><\/a>\u041e\u043d\u0430 <\/p>\n<blockquote><p><i>\u00ab\u0436\u0438\u0432\u0451\u0442 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0438 \u0432\u0441\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u0410 \u0438\u043c\u0435\u043d\u043d\u043e, \u0443 \u043d\u0438\u0445 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u042d\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043e\u043d\u0438 \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f (inline) \u0432 \u043a\u0430\u0436\u0434\u043e\u0435 \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435. \u041f\u043e\u044d\u0442\u043e\u0439 \u043f\u0438\u0440\u0438\u0447\u0438\u043d\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0434\u043d\u0443 \u0438 \u0442\u0443 \u0436\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u0443\u044e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0430\u0434\u0440\u0435\u0441 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438\u00bb<\/i><\/p><\/blockquote>\n<p>. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u0451:<\/p>\n<pre><code class=\"rust\">const N = 4;      \/\/ N: i32 fn main() { \tprintln!(&quot;N = {}&quot;,N); } <\/code><\/pre>\n<p>  \u0418 \u0432\u044b\u0432\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u043e\u0432:<\/p>\n<p>  <i>error: expected `:`, found `=`<br \/>  const N = 4;<\/i><br \/>  ~~~~~~^<br \/>  \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 <b>const<\/b>, \u0442\u043e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0438\u043f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b! \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c:<\/p>\n<pre><code class=\"rust\">const N: i32 = 4; <\/code><\/pre>\n<p>  \u0412\u044b\u0445\u043e\u0434:<\/p>\n<p>  <b>N = 4<\/b><\/p>\n<p>  \u0418 \u0432\u0441\u0451 \u0432\u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u041e\u041a. \u0410 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043c\u044b \u0435\u0451 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c? \u041f\u0440\u043e\u0431\u0443\u0435\u043c:<\/p>\n<pre><code class=\"rust\">const N: i32 = 4; const N: i32 = 5;  fn main() { \tprintln!(&quot;N = {}&quot;,N); }  <\/code><\/pre>\n<p>  \u0412\u044b\u0445\u043e\u0434:<\/p>\n<p>  <b>error: duplicate definition of value `N` [E0428]<\/b><\/p>\n<p>  \u0422\u0430\u043a \u0437\u043d\u0430\u0447\u0438\u0442, \u0438\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435! \u0425\u043c\u2026 \u0410 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043c\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"rust\">const N: i32 = 4; fn main() {     println!(&quot;N = {}&quot;,N);     const N: i32 = 8;     println!(&quot;N = {}&quot;,N); } <\/code><\/pre>\n<p>  \u0412\u044b\u0445\u043e\u0434:<\/p>\n<p>  <i>warning: constant item is never used: `N`, #[warn(dead_code)] on by default<br \/>  const N: i32 = 4;<br \/>  ^~~~~~~~~~~~~~~~~<\/i><\/p>\n<p>  \u0421\u0442\u0440\u0430\u043d\u043d\u043e. \u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0434\u0440\u0443\u0433\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430, \u0442\u043e \u043d\u0430\u0448\u0430 \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u041e\u0431\u044f\u0437\u0430\u043d\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c:<\/p>\n<pre><code class=\"rust\">const N: i32 = 4; fn main() {     println!(&quot;N = {}&quot;,N);     const N: i32 = 8;     println!(&quot;N = {}\\n&quot;,N);     other(); }  fn other() {     println!(&quot;N = {}&quot;,N); }  <\/code><\/pre>\n<p>  \u0412\u044b\u0445\u043e\u0434:<\/p>\n<p>  <i>N = 8<br \/>  N = 8<\/p>\n<p>  N = 4<\/i><\/p>\n<p>  \u0410\u0433\u0430! \u042f \u0431\u044b\u043b \u043f\u0440\u0430\u0432. \u0412\u0438\u0434\u0438\u0442\u0435: \u043f\u0435\u0440\u0432\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0442.\u043a. \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>main()<\/i> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0434\u0440\u0443\u0433\u0430\u044f \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0438\u043c\u0435\u043d\u0435\u043c, \u0430 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>other()<\/i> \u043e\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0410 \u0435\u0441\u043b\u0438 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"rust\">const N: i32 = 4; fn main() {     println!(&quot;N = {}&quot;,N);     const M: i32 = 8;     println!(&quot;M = {}\\n&quot;,M);     other(); }  fn other() {     println!(&quot;N = {}&quot;,N); }  <\/code><\/pre>\n<p>  \u0422\u043e \u0432\u044b\u0445\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c:<\/p>\n<p>  <i>N = 4<br \/>  M = 8<\/p>\n<p>  N = 4<\/i><\/p>\n<p>  \u0418 \u043f\u043e\u0436\u0430\u043b\u0443\u0439 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442:<\/p>\n<pre><code class=\"rust\">fn main() {     println!(&quot;N = {}&quot;,N);     const N: i32 = 8;     const N: i32 = 9;     println!(&quot;N = {}\\n&quot;,N); } <\/code><\/pre>\n<p>  \u0412\u044b\u0445\u043e\u0434:<\/p>\n<p>  <i>error: duplicate definition of value `N` [E0428]<br \/>  const N: i32 = 9;<br \/>  ^~~~~~~~~~~~~~~~~<\/i><\/p>\n<p>  \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0434\u0435\u043b\u0430\u044e \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e \u0432 \u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0432\u0443\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u0441 \u043e\u0434\u043d\u0438\u043c \u0438 \u0442\u0435\u043c \u0436\u0435 \u0438\u043c\u0435\u043d\u0435\u043c! \u0418 \u0435\u0449\u0451 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"rust\">fn main() {     println!(&quot;N = {}&quot;,N);     const N: i32 = 8; \t{     \tconst N: i32 = 9; \t}        println!(&quot;N = {}\\n&quot;,N); } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0434\u043e\u0431\u0440\u043e\u0441\u043e\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440, \u0442\u043e \u043e\u043d \u0432\u0430\u043c \u0432\u044b\u043f\u043b\u044e\u043d\u0435\u0442:<\/p>\n<p>  <i>warning: constant item is never used: `N`, #[warn(dead_code)] on by default<br \/>  const N: i32 = 9;<br \/>  ^~~~~~~~~~~~~~~~~<\/i><\/p>\n<p>  \u041e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e. \u041d\u0430\u0434\u043e \u0432\u0441\u0451 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c:<\/p>\n<pre><code class=\"rust\">fn main() {     println!(&quot;N = {}&quot;,N);     const N: i32 = 8; \t{     \tprintln!(&quot;N = {}\\n&quot;,N); \t}        println!(&quot;N = {}\\n&quot;,N); } <\/code><\/pre>\n<p>  \u0412\u044b\u0445\u043e\u0434:<\/p>\n<pre><code class=\"rust\">N = 8 N = 8  N = 8 <\/code><\/pre>\n<p>  \u0410 \u0435\u0441\u043b\u0438 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"rust\">fn main() {     println!(&quot;N = {}&quot;,N); \t{     \tconst N: i32 = 8;     \tprintln!(&quot;N = {}\\n&quot;,N); \t}        println!(&quot;N = {}\\n&quot;,N); } <\/code><\/pre>\n<p>  \u0412\u044b\u0445\u043e\u0434:<\/p>\n<p>  <i>error: unresolved name `N` [E0425]<br \/>  println!(\u00abN = {}\u00bb,N);<br \/>  ~~~~~~~~~~~~^<br \/>  &#8230;<\/i><\/p>\n<p>  \u0418 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"rust\">const N: i32 = 3;  fn main() {     println!(&quot;N = {}&quot;,N); \t{     \tconst N: i32 = 8;     \tprintln!(&quot;N = {}\\n&quot;,N); \t}        println!(&quot;N = {}\\n&quot;,N); } <\/code><\/pre>\n<p>  \u0412\u044b\u0445\u043e\u0434:<\/p>\n<p>  <i>N = 3<br \/>  N = 8<\/p>\n<p>  N = 3<\/i><\/p>\n<p>  \u0417\u043d\u0430\u0447\u0438\u0442, \u0435\u0441\u043b\u0438 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430, \u0442\u043e \u043e\u043d\u0430 \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0438\u043c\u0435\u043d\u0435\u043c, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0443\u044e\u0441\u044f, \u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c, <b>\u00ab\u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0432\u044b\u0448\u0435\u00bb<\/b>(\u043f\u043e\u0434 <b>\u00ab\u0443\u0440\u043e\u0432\u043d\u0435\u043c\u00bb<\/b> \u044f \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438). \u0410 \u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430, \u0442\u043e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 <b>\u00ab\u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0432\u044b\u0448\u0435\u00bb<\/b> \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0435\u0449\u0451 \u0438 \u043d\u0430 <b>\u00ab\u043d\u0438\u0436\u043d\u0438\u0435 \u0443\u0440\u043e\u0432\u043d\u0438\u00bb<\/b> \u043f\u043e\u043a\u0430 \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0438\u043c\u0435\u043d\u0435\u043c(\u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435 \u043c\u043e\u044e \u043c\u044b\u0441\u043b\u044c&#8230;). \u041c\u044b \u0441 \u0432\u0430\u043c\u0438 \u0432 \u044d\u0442\u043e\u043c \u0443\u0431\u0435\u0434\u0438\u043b\u0438\u0441\u044c(\u0441\u043c\u043e\u0442\u0440\u0438 \u0432\u0432\u0435\u0440\u0445).<\/p>\n<p>  \u0418 \u043c\u0435\u043d\u044f\u0442\u044c \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u043e\u0436\u0435 \u043d\u0435\u043b\u044c\u0437\u044f:<\/p>\n<pre><code class=\"rust\">fn main() {     println!(&quot;N = {}&quot;,N); \t{     \tconst mut N: i32 = 8;     \tprintln!(&quot;N = {}\\n&quot;,N); \t}        println!(&quot;N = {}\\n&quot;,N); } <\/code><\/pre>\n<p>  \u0412\u044b\u0445\u043e\u0434:<\/p>\n<p>  <i>error: const globals cannot be mutable<br \/>  const mut N: i32 = 8;<br \/>  ~~~~~^~~<\/i><\/p>\n<p>  \u041d\u0430\u0432\u0435\u0440\u043d\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e <\/p>\n<blockquote><p><i>\u00ab\u0443 \u043d\u0438\u0445 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u042d\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043e\u043d\u0438 \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f (inline) \u0432 \u043a\u0430\u0436\u0434\u043e\u0435 \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u00bb<\/i><\/p><\/blockquote>\n<p>.<\/p>\n<p>  \u0410 \u0435\u0441\u043b\u0438 \u0432\u0437\u044f\u0442\u044c \u0430\u0434\u0440\u0435\u0441\u0430?<\/p>\n<pre><code class=\"rust\">const N: i32 = 3;  fn main() {     println!(&quot;{:p} -&gt; N&quot;,&N);     \/\/ \u041f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0430\u0434\u0440\u0435\u0441.     let x = &N;      \/\/ \u0411\u0435\u0440\u0451\u043c \u0430\u0434\u0440\u0435\u0441.     println!(&quot;{} = N&quot;,N);     println!(&quot;{} = N&quot;,*x);  \/\/ \u041f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 x.     println!(&quot;{:p} -&gt; N&quot;,x);    \/\/ \u041f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0430\u0434\u0440\u0435\u0441. \t{     \tprintln!(&quot;{:p} -&gt; N&quot;,&N);     \tlet x = &N;     \tprintln!(&quot;{} = N&quot;,N);     \tprintln!(&quot;{} = N&quot;,*x);     \tprintln!(&quot;{:p} -&gt; N&quot;,x); \t}     other(); }  fn other() {     println!(&quot;{:p} -&gt; N&quot;,&N);     let x = &N;     println!(&quot;{} = N&quot;,N);     println!(&quot;{} = N&quot;,*x);     println!(&quot;{:p} -&gt; N&quot;,x); } <\/code><\/pre>\n<p>  \u0412\u044b\u0445\u043e\u0434:<\/p>\n<p>  <i>0x800fa114 -&gt; N<br \/>  3 = N<br \/>  3 = N<br \/>  0x800fa114 -&gt; N<br \/>  0x800fa114 -&gt; N<br \/>  3 = N<br \/>  3 = N<br \/>  0x800fa114 -&gt; N<br \/>  0x800fa114 -&gt; N<br \/>  3 = N<br \/>  3 = N<br \/>  0x800fa114 -&gt; N<\/i><\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0431\u0440\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0438 \u0441 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u0434\u0443\u043c\u0430\u044e \u043b\u0443\u0447\u0448\u0435 \u0442\u0430\u043a \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c, \u0442.\u043a. <\/p>\n<blockquote><p><i>\u00ab\u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0434\u043d\u0443 \u0438 \u0442\u0443 \u0436\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u0443\u044e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0430\u0434\u0440\u0435\u0441 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438\u00bb<\/i><\/p><\/blockquote>\n<p>  \u041d\u0443, \u043f\u0440\u043e const \u0432\u0441\u0451. \u041f\u043e\u0442\u043e\u043c \u043f\u0440\u043e <b>static<\/b> \u0447\u0435\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443\u2026<\/p>\n<p>  <b>\u041b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430:<\/b><\/p>\n<p>  <a href=\"https:\/\/doc.rust-lang.org\/reference.html\">The Rust Reference<\/a> (\u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439)<br \/>  <a href=\"https:\/\/doc.rust-lang.org\/stable\/book\/\">The Rust Programming Language<\/a> (\u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439)<br \/>  <a href=\"http:\/\/kgv.github.io\/rust_book_ru\/src\/INTRODUCTION.html\">The Rust Programming Language<\/a> (\u0440\u0443\u0441\u0441\u043a\u0438\u0439)               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/275763\/\"> https:\/\/habrahabr.ru\/post\/275763\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h4><b>\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e const<\/b><\/h4>\n<h5><b>\u041e \u0441\u0442\u0430\u0442\u044c\u0435<\/b><\/h5>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 <b>const.<\/b><\/p>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-272738","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272738","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272738"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272738\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}