(vm: &VirtualMachine, obj: PyObjectRef)
| 147 | |
| 148 | impl TryFromObject for ArgStrOrBytesLike { |
| 149 | fn try_from_object(vm: &VirtualMachine, obj: PyObjectRef) -> PyResult<Self> { |
| 150 | obj.downcast() |
| 151 | .map(Self::Str) |
| 152 | .or_else(|obj| ArgBytesLike::try_from_object(vm, obj).map(Self::Buf)) |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | impl ArgStrOrBytesLike { |