is everything in rust's std implemented in rust? I don't mean in the metacircular sense, I mean could they be written and compiled by an end user
-
Show this thread
-
asking because I'm curious about how Box and Rc are implemented, I don't think I know enough yet to imagine how they work
2 replies 0 retweets 0 likesShow this thread -
This Tweet is unavailable.
-
ah so I think I've not met the *mut type yet
1 reply 0 retweets 0 likes -
Replying to @mountain_ghosts @valarauca1
It's a raw pointer. Dereferencing it is unsafe. There's also `*const T`
1 reply 0 retweets 1 like
Note that box (like most code) uses NonNull<T> which is a wrapper around a raw pointer that besides showing that instant the compiler knows can't be null for optimization purposes. This is why Option<Box<T>> is the same size as Box<T>
10:03 AM - 20 Mar 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.