pub fn result( &self ) -> Option< FileReaderResult > {
        let result = js!( return @{self}.result; );
        match result {
            Value::Undefined | Value::Null => None,
            Value::String( text ) => Some( FileReaderResult::String( text ) ),
            Value::Reference( reference ) => Some( FileReaderResult::ArrayBuffer( reference.try_into().unwrap() ) ),
            _ => unreachable!( "Unexpected result of a FileReader: {:?}", result )
        }
    }
/// The file's contents. This method will only return a value after the read operation
/// is complete, and the format of the data depends on which of the methods was used
/// to initiate the read operation.
///
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/result)
// https://w3c.github.io/FileAPI/#ref-for-dfn-result
The file's contents. This method will only return a value after the read operation
is complete, and the format of the data depends on which of the methods was used
to initiate the read operation.


The file ' s contents . This method will only return a value after the read operation is complete and the format of the data depends on which of the methods was used to initiate the read operation .
pub fn result( &self ) -> Option< FileReaderResult > {
        let result = js!( return @{self}.result; );
        match result {
            Value::Undefined | Value::Null => None,
            Value::String( text ) => Some( FileReaderResult::String( text ) ),
            Value::Reference( reference ) => Some( FileReaderResult::ArrayBuffer( reference.try_into().unwrap() ) ),
            _ => unreachable!( "Unexpected result of a FileReader: {:?}", result )
        }
    }
pub fn result ( & self ) -> Option < FileReaderResult > { let result = js ! ( return { self } result ) ; match result { Value :: Undefined | Value :: Null => None , Value :: String ( text ) => Some ( FileReaderResult :: String ( text ) ) , Value :: Reference ( reference ) => Some ( FileReaderResult :: ArrayBuffer ( reference . try_into ( ) . unwrap ( ) ) ) , _ => unreachable ! ( " " result ) } }
The file's contents.
The file ' s contents .
&self
&self