{"action":"created","issue":{"url":"https://api.github.com/repos/fizyk20/generic-array/issues/52","repository_url":"https://api.github.com/repos/fizyk20/generic-array","labels_url":"https://api.github.com/repos/fizyk20/generic-array/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/fizyk20/generic-array/issues/52/comments","events_url":"https://api.github.com/repos/fizyk20/generic-array/issues/52/events","html_url":"https://github.com/fizyk20/generic-array/issues/52","id":276715255,"number":52,"title":"Obtaining &[T; N] for GenericArray<T, N>","user":{"login":"tarcieri","id":797,"avatar_url":"https://avatars2.githubusercontent.com/u/797?v=4","gravatar_id":"","url":"https://api.github.com/users/tarcieri","html_url":"https://github.com/tarcieri","followers_url":"https://api.github.com/users/tarcieri/followers","following_url":"https://api.github.com/users/tarcieri/following{/other_user}","gists_url":"https://api.github.com/users/tarcieri/gists{/gist_id}","starred_url":"https://api.github.com/users/tarcieri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarcieri/subscriptions","organizations_url":"https://api.github.com/users/tarcieri/orgs","repos_url":"https://api.github.com/users/tarcieri/repos","events_url":"https://api.github.com/users/tarcieri/events{/privacy}","received_events_url":"https://api.github.com/users/tarcieri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-25T00:58:37Z","updated_at":"2017-12-16T00:37:48Z","closed_at":null,"author_association":"NONE","body":"Apologies if there's already a way to do this, but I can't figure it out.\r\n\r\nI'd like to pass a generic array as a sized array reference. I'm able to do this using e.g. the [arrayref crate](https://github.com/droundy/arrayref) but I'd like to avoid that if possible (among other things by virtue of using a macro that expands to unsafe code I'm unable to `deny(unsafe_code)`."},"comment":{"url":"https://api.github.com/repos/fizyk20/generic-array/issues/comments/352145512","html_url":"https://github.com/fizyk20/generic-array/issues/52#issuecomment-352145512","issue_url":"https://api.github.com/repos/fizyk20/generic-array/issues/52","id":352145512,"user":{"login":"tarcieri","id":797,"avatar_url":"https://avatars2.githubusercontent.com/u/797?v=4","gravatar_id":"","url":"https://api.github.com/users/tarcieri","html_url":"https://github.com/tarcieri","followers_url":"https://api.github.com/users/tarcieri/followers","following_url":"https://api.github.com/users/tarcieri/following{/other_user}","gists_url":"https://api.github.com/users/tarcieri/gists{/gist_id}","starred_url":"https://api.github.com/users/tarcieri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarcieri/subscriptions","organizations_url":"https://api.github.com/users/tarcieri/orgs","repos_url":"https://api.github.com/users/tarcieri/repos","events_url":"https://api.github.com/users/tarcieri/events{/privacy}","received_events_url":"https://api.github.com/users/tarcieri/received_events","type":"User","site_admin":false},"created_at":"2017-12-16T00:37:48Z","updated_at":"2017-12-16T00:37:48Z","author_association":"NONE","body":"It would need something similar to this:\r\n\r\nhttps://github.com/fizyk20/generic-array/blob/master/src/impls.rs#L138\r\n\r\nBut perhaps implementing `AsRef` and `AsMut` for the sized array types. That said, these traits are already implemented for the slice types, so implementing them for both might be ambiguous and annoying in places."}}
{"actor":{"display_login":"tarcieri"}}