class_docstr: Return struct for functions wrapped in ``text_object``.
  Both `start` and `end` are relative to the current cursor position.
class_docstr_tok: ["Return","struct","for","functions","wrapped","in","``","text_object","``",".","Both","`","start","`","and","`","end","`","are","relative","to","the","current","cursor","position","."]
docstr: Turn text object into `ClipboardData` instance.
docstr_tok: ["Turn","text","object","into","`","ClipboardData","`","instance","."]
code: def cut(self, buffer):
      """
      Turn text object into `ClipboardData` instance.
      """
      from_, to = self.operator_range(buffer.document)
  
      from_ += buffer.cursor_position
      to += buffer.cursor_position
      to -= 1  # SelectionState does not include the end position, `operator_range` does.
  
      document = Document(
          buffer.text,
          to,
          SelectionState(
              original_cursor_position=from_, type=self.selection_type
          ),
      )
  
      new_document, clipboard_data = document.cut_selection()
      return new_document, clipboard_data
  
imports: from __future__ import unicode_literals
  from prompt_toolkit.buffer import ClipboardData, indent, unindent, reshape_text
  from prompt_toolkit.document import Document
  from prompt_toolkit.enums import IncrementalSearchDirection, SEARCH_BUFFER, SYSTEM_BUFFER
  from prompt_toolkit.filters import Filter, Condition, HasArg, Always, IsReadOnly
  from prompt_toolkit.filters.cli import ViNavigationMode, ViInsertMode, ViInsertMultipleMode, ViReplaceMode, ViSelectionMode, ViWaitingForTextObjectMode, ViDigraphMode, ViMode
  from prompt_toolkit.key_binding.digraphs import DIGRAPHS
  from prompt_toolkit.key_binding.vi_state import CharacterFind, InputMode
  from prompt_toolkit.keys import Keys
  from prompt_toolkit.layout.utils import find_window_for_buffer_name
  from prompt_toolkit.selection import SelectionType, SelectionState, PasteMode
  from .scroll import scroll_forward, scroll_backward, scroll_half_page_up, scroll_half_page_down, scroll_one_line_up, scroll_one_line_down, scroll_page_up, scroll_page_down
  from .named_commands import get_by_name
  from ..registry import Registry, ConditionalRegistry, BaseRegistry
  import prompt_toolkit.filters
  from six.moves import range
  import codecs
  import six
  import string
label_desc: Use image node_id 6 for calling the TextObject obj's underlying member method code with example usage: obj.cut(buffer) and returns: new_document,  clipboard_data