Why can't C compilers rearrange struct members to eliminate alignment padding?
C 컴파일러가 정렬 패딩을 제거하기 위해 구조체 멤버를 재정렬 할 수없는 이유는 무엇입니까?
In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
이는 다양한 언어에서 객체, 레코드, 구조체, 딕셔너리, 해시 테이블, 키 리스트, 혹은 연관 배열로 구현됩니다.
Debug is a trait that enables us to print out our struct in a way that is useful for developers so we can see its value while we're debugging our code.
Debug는 개발자에게 유용한 방식으로 우리의 구조체를 출력할 수 있도록 해줘서 우리 코드를 디버깅 하는 동안 그 값을 볼수 있게 해주는 트레잇입니다.
We define a struct named MyBox and declare a generic parameter T, since we want our type to be able to hold values of any type.
우리는 MyBox라는 이름의 구조체를 정의하고 제네릭 파라미터 T를 선언했는데, 이는 우리의 타입이 어떠한 종류의 타입 값이든 가질 수 있길 원하기 때문입니다.
Listing 10-6 shows the definition and use of a Point struct that can hold x and ycoordinate values of any type
Listing 10-6은 임의의 타입으로 된 x와 y 좌표값을 가질 수 있는 Point 구조체의 정의 및 사용법을 보여주고 있습니다
The definition of the Ref struct is shown in Listing 19-16, without lifetime bounds for now
Ref 구조체의 정의는 Listing 19-16과 같은데, 지금은 라이프타임 바운드 없이 쓰였습니다
In the User struct definition in Listing 5-1, we used the owned String type rather than the&str string slice type.
예제 5-1에서의 User 구조체 정의에서는,&str 문자 슬라이스 타입 대신 String타입을 사용했습니다.
When a Trace hits something, it returns a "Hit Result" Struct.
트레이스가 무언가에 걸릴 때, "Hit Result" 구조체를 반환합니다.
There is no way to define a struct that inherits the parent struct's fields and method implementations.
부모 구조체의 필드와 메소드 구현을 상속받는 구조체를 정의할 방법은 없습니다.
Lifetime names for struct fields always need to be declared after the impl keyword and then used after the struct's name, because those lifetimes are part of the struct's type.
구조체 필드를 위한 라이프타임 이름은 언제나 impl 키워드 뒤에 선언되어야 하며, 그러고 나서 구조체의 이름 뒤에 사용되어야 하는데, 이 라이프타임들은 구조체 타입의 일부이기 때문입니다.
The call/2 function is called for every new request that comes in from the web server, Cowboy. It receives a %Plug.Conn{} connection struct as its first argument and is expected to return a %Plug.Conn{} connection struct.
call/2 함수는 Cowboy로부터 넘어온 매 새로운 요청에 대해서 호출됩니다. 이는 %Plug.Conn{} 커넥션 구조체를 첫번째 인자로 받으며, %Plug.Conn{} 커넥션 구조체를 반환해야 합니다.
It receives a %Plug.Conn{} connection struct as its first argument and is expected to return a %Plug.Conn{} connection struct.
이는 %Plug.Conn{} 커넥션 구조체를 첫번째 인자로 받으며, %Plug.Conn{} 커넥션 구조체를 반환해야 합니다.
The documentation for this struct was generated from the following file
이 구조에 대한 설명서가 다음 파일에서 생성되었습니다.