alamb opened a new issue, #6478:
URL: https://github.com/apache/arrow-rs/issues/6478

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   While working with `StringViewArray`'s downstream in DataFusion, I found it 
was not always clear that `ByteView` exists for creating/destructuring  the 
`u128`s so I wanted to write some additional documentation.
   
   While doing so, I also found it quite awkward to write the examples 
(specifically setting the prefix)
   
    ```rust
    let view = ByteView {
       length: 12,
       // convert 4 byte &str to u32
       prefix: u32::from_le_bytes(prefix.as_bytes().try_into().unwrap()),
       buffer_index: 3,
       offset: 42,
    };
    ```
   
   
   
   **Describe the solution you'd like**
   I would like better documentation and a builder style API
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to