content: // generated by diplomat-tool
  // dart format off
  
  part of 'lib.g.dart';
  
  final class _BorrowedFieldsReturningFfi extends ffi.Struct {
    external _SliceUtf8 bytes;
  }
  
  final class BorrowedFieldsReturning {
    String bytes;
  
    BorrowedFieldsReturning({required this.bytes});
  
    // ignore: unused_element
    BorrowedFieldsReturning._fromFfi(_BorrowedFieldsReturningFfi ffi, core.List<Object> aEdges) :
      bytes = ffi.bytes._toDart(aEdges);
  
    // If this struct contains any slices, their lifetime-edge-relevant objects (typically _FinalizedArenas) will only
    // be constructed here, and can be appended to any relevant lifetime arrays here. <lifetime>AppendArray accepts a list
    // of arrays for each lifetime to do so. It accepts multiple lists per lifetime in case the caller needs to tie a lifetime to multiple
    // output arrays. Null is equivalent to an empty list: this lifetime is not being borrowed from.
    // ignore: unused_element
    _BorrowedFieldsReturningFfi _toFfi(ffi.Allocator temp, {core.List<core.List<Object>> aAppendArray = const []}) {
      final struct = ffi.Struct.create<_BorrowedFieldsReturningFfi>();
      struct.bytes = bytes._utf8AllocIn(aAppendArray.isNotEmpty ? _FinalizedArena.withLifetime(aAppendArray).arena : temp);
      return struct;
    }
  
  
    @override
    bool operator ==(Object other) =>
        other is BorrowedFieldsReturning &&
        other.bytes == bytes;
  
    @override
    int get hashCode => Object.hashAll([
          bytes,
        ]);
  
    // Return all fields corresponding to lifetime `'a`
    // without handling lifetime dependencies (this is the job of the caller)
    // This is all fields that may be borrowed from if borrowing `'a`,
    // assuming that there are no `'other: a`. bounds. In case of such bounds,
    // the caller should take care to also call _fieldsForLifetimeOther
    // ignore: unused_element
    core.List<Object> get _fieldsForLifetimeA => [bytes];
  }
  
  // dart format on
  