use std::slice;
fn main() {
    let range = (0..u8::MAX).collect::<Vec<_>>();
    let v = range
        .iter()
        .map(|x| std::str::from_utf8(slice::from_ref(x)).unwrap_or("Err"))
        .collect::<Vec<_>>();
    println!("{v:?}")
}Если bb; убрать, то всё работает, почему так? Никакого перемещения там не происходит, но компилятор думает иначе.
Это точно системный язык на котором можно писать серьёзные вещи?
Или тут и правда происходит некое перемещение в параллельную вселенную?
[dependencies]
serde = { version = "1.0.192", features = ["derive"] }
serde_json = "1.0.108"[
  {
    "values": {
      "test_snap": "test_snap2",
      "15:49:28": "09:38:39",
      "no-description": "no-description",
      "`->": "`->",
      "2023-12-15": "2023-12-22"
    },
    "children": [
      {
        "values": {
          "no-description": "no-description",
          "test_snap": "snapshot3",
          "`->": "`->",
          "2023-12-15": "2023-12-22",
          "15:49:28": "09:38:54"
        },
        "children": [
          {
            "values": {
              "`->": "`->",
              "15:49:28": "09:39:03",
              "2023-12-15": "2023-12-22",
              "no-description": "no-description",
              "test_snap": "xxx"
            },
            "children": [
              {
                "values": {
                  "test_snap": "current",
                  "`->": "`->",
                  "2023-12-15": "You",
                  "15:49:28": "are",
                  "no-description": "here!"
                },
                "children": []
              }
            ]
          }
        ]
      }
    ]
  }
]_   name                        date       time         description
`-> test_snap                   2023-12-15 15:49:28     no-description
  `-> test_snap2                2023-12-22 09:38:39     no-description
    `-> snapshot3               2023-12-22 09:38:54     no-description
      `-> xxx                   2023-12-22 09:39:03     no-description
        `-> current                                     You are here![
  {
    "values": {
      "name": "test_snap",
      "time": "15:49:28",
      "description": "no-description",
      "date": "2023-12-15",
      "_": "`->"
    },
    "children": [
      {
        "values": {
          "name": "test_snap2",
          "description": "no-description",
          "time": "09:38:39",
          "_": "`->",
          "date": "2023-12-22"
        },
        "children": [
          {
            "values": {
              "date": "2023-12-22",
              "_": "`->",
              "time": "09:38:54",
              "description": "no-description",
              "name": "snapshot3"
            },
            "children": [
              {
                "values": {
                  "_": "`->",
                  "date": "2023-12-22",
                  "time": "09:39:03",
                  "name": "xxx",
                  "description": "no-description"
                },
                "children": [
                  {
                    "values": {
                      "date": "You",
                      "time": "are",
                      "description": "here!",
                      "_": "`->",
                      "name": "current"
                    },
                    "children": []
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
]Если я передам структуру через di в другую структуру, и она не будет иметь методы требуемого интерфейса, приложение все равно не скомпилится
Хочу такой вариант пропустить и сразу перейти к kubernetis
Знаю, что могу вынести DB и pgbouncer на отдельные сервера
set((Product.objects.order_by('-date_updated')[:3] | Product.objects.filter(new_product__in=NewArrival.objects.all())).values_list("id", flat=True))fn f<T: Add<Output = T>>(x1: T, x2: T) -> T {
    x1 + x2
}
fn main() {
    println!("{}", f(3.14_f32, 2.7)); // можно f32 + f32
    println!("{}", f(3.14_f64, 2.7)); // а можно f64 + f64
}то как go может работать на ngnix?
use std::env::current_exe;
fn main() {
    let x = current_exe();
    println!("{x:?}")
}