Telegram Group & Telegram Channel
#dev #rust

Загадка, теперь уже точно.

fn test<T: ?Sized>() {
dbg!(is_concrete_type!(i32));
dbg!(is_concrete_type!(T));
}
fn main() {
test::<i32>();
}


[src/main.rs:35:5] is_concrete_type!(i32) = true
[src/main.rs:36:5] is_concrete_type!(T) = false


Как? (Конкретные названия типов и T не хардкодятся)



group-telegram.com/alisa_rummages/174
Create:
Last Update:

#dev #rust

Загадка, теперь уже точно.

fn test<T: ?Sized>() {
dbg!(is_concrete_type!(i32));
dbg!(is_concrete_type!(T));
}
fn main() {
test::<i32>();
}


[src/main.rs:35:5] is_concrete_type!(i32) = true
[src/main.rs:36:5] is_concrete_type!(T) = false


Как? (Конкретные названия типов и T не хардкодятся)

BY Алиса копается


Warning: Undefined variable $i in /var/www/group-telegram/post.php on line 260

Share with your friend now:
group-telegram.com/alisa_rummages/174

View MORE
Open in Telegram


Telegram | DID YOU KNOW?

Date: |

The regulator took order for the search and seizure operation from Judge Purushottam B Jadhav, Sebi Special Judge / Additional Sessions Judge. Now safely in France with his spouse and three of his children, Kliuchnikov scrolls through Telegram to learn about the devastation happening in his home country. In view of this, the regulator has cautioned investors not to rely on such investment tips / advice received through social media platforms. It has also said investors should exercise utmost caution while taking investment decisions while dealing in the securities market. Oleksandra Matviichuk, a Kyiv-based lawyer and head of the Center for Civil Liberties, called Durov’s position "very weak," and urged concrete improvements. "There are a lot of things that Telegram could have been doing this whole time. And they know exactly what they are and they've chosen not to do them. That's why I don't trust them," she said.
from tr


Telegram Алиса копается
FROM American