简体   繁体   English

嵌套使用声明

[英]nested use declarations

What does the following syntax mean?以下语法是什么意思?

use tokio_tungstenite::{connect_async, tungstenite::protocol::Message};

Is it equivalent to this?是否等同于这个?

use tokio_tungstenite::connect_async;
use tokio_tungstenite::connect_async::tungstenite::protocol::Message;

I doubt it: tokio_tungstenite::connect_async::tungstenite::protocol::Message is not a symbol.我对此表示怀疑: tokio_tungstenite::connect_async::tungstenite::protocol::Message不是符号。

It is equivalent to:它相当于:

use tokio_tungstenite::connect_async;
use tokio_tungstenite::tungstenite::protocol::Message;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM