{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-num/num-traits/issues/84","repository_url":"https://api.github.com/repos/rust-num/num-traits","labels_url":"https://api.github.com/repos/rust-num/num-traits/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/rust-num/num-traits/issues/84/comments","events_url":"https://api.github.com/repos/rust-num/num-traits/issues/84/events","html_url":"https://github.com/rust-num/num-traits/issues/84","id":360261010,"node_id":"MDU6SXNzdWUzNjAyNjEwMTA=","number":84,"title":"Feature request: 'One' and 'Zero' traits for bool","user":{"login":"tsoernes","id":6782404,"node_id":"MDQ6VXNlcjY3ODI0MDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6782404?v=4","gravatar_id":"","url":"https://api.github.com/users/tsoernes","html_url":"https://github.com/tsoernes","followers_url":"https://api.github.com/users/tsoernes/followers","following_url":"https://api.github.com/users/tsoernes/following{/other_user}","gists_url":"https://api.github.com/users/tsoernes/gists{/gist_id}","starred_url":"https://api.github.com/users/tsoernes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsoernes/subscriptions","organizations_url":"https://api.github.com/users/tsoernes/orgs","repos_url":"https://api.github.com/users/tsoernes/repos","events_url":"https://api.github.com/users/tsoernes/events{/privacy}","received_events_url":"https://api.github.com/users/tsoernes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-14T11:09:01Z","updated_at":"2018-09-14T19:27:21Z","closed_at":"2018-09-14T19:27:21Z","author_association":"NONE","body":"Could we get the One and Zero traits implemented for booleans, as true and false respectively? It would be useful, for example, in the context or `ndarray` where arrays often are initialized using either trait, e.g. `let arr: Array1<usize> = Array::zeroes(5)` which in turn uses the Zero trait for usize. I would like to be able to do the same with booleans.\r\n\r\nThank you"}}
{"actor":{"display_login":"tsoernes"}}