Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

armanriazi•rust•unsafe•function•or•method

By calling an unsafe function within an unsafe block, we’re saying that we’ve read this function’s documentation and take responsibility for upholding the function’s contracts.
    unsafe fn dangerous() {}

    unsafe {
        dangerous();
    }
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
3+4 =