코딩Coding/Rust용어

Rust용어] first첫번째 변수를 의미함, rest 첫번째를 뺀 나머지 변수들__split_first_mut() 할 때 나오는 용어

내인생PLUS 2022. 5. 29. 22:45
728x90
Returns the first and all the rest of the elements of the slice, or None if it is empty.


first 첫 번째 변수를 의미한

rest 나머지 변수들을 의미함.

split_first_mut() 할 때 나옴.

 

출처 :

split_first_mut 검색하면 됨.

 

https://doc.rust-lang.org/std/primitive.slice.html

 

slice - Rust

Rotates the slice in-place such that the first self.len() - k elements of the slice move to the end while the last k elements move to the front. After calling rotate_right, the element previously at index self.len() - k will become the first element in the

doc.rust-lang.org

 

 

 

 

 

 

 

 

 

 

 

 


 

 

 

 

반응형