-
Rust] Context and capabilities in Rust코딩Coding/★Rust★기초★Syntax 2022. 5. 3. 10:39728x90
rust에서 context의 의미
https://docs.rs/bastion/0.2.0/bastion/context/index.html
https://internals.rust-lang.org/t/blog-post-contexts-and-capabilities-in-rust/15833
https://tmandry.gitlab.io/blog/posts/2021-12-21-context-capabilities/
Today we have two main approaches to using these context objects.
나옴
https://doc.rust-lang.org/reference/const_eval.html
Constant evaluation
Constant expressions
The following expressions are constant expressions, so long as any operands are also constant expressions and do not cause any Drop::drop calls to be run.
Const context
A const context is one of the following:
Array type length expressions
Array repeat length expressions
The initializer of
constants
statics
enum discriminants
A const generic argument
Const Functions
A const fn is a function that one is permitt
…….반응형'코딩Coding > ★Rust★기초★Syntax' 카테고리의 다른 글
Crust of Rust : async/ await - Jon Gjengset (0) 2022.05.19 Rust Macros: ❤️The What, Why? and How- Mattsi Jansky (0) 2022.05.18 Rust_error handling pattern) best no op macro? assert!(true)? What do you think of this error handling pattern? (0) 2022.05.15 rust macro❤️ (0) 2022.05.15 새로운 버젼 나올때 체크할 문구stable functions are now const (0) 2022.04.29 [Haskell & Rust]Monads or whatever - Optionals and errors in Haskell & Rust (0) 2022.04.27 Rust - inline Assembly, x86,ARM, PowerPC_170715 (0) 2022.04.25 Reddit에서 Rust관련 깊이 있는 글을 많이 올리는 사용자 배울게 많다. ^^; (0) 2022.04.24